摘要:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_ 阅读全文
摘要:
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.co 阅读全文
摘要:
安装android studio开发环境,并运行出一个helloworld程序(真机或模拟器运行),并截图 阅读全文
摘要:
1、使用HashMap存储多个企鹅信息,然后统一使用Iterator进行遍历使用HashMap存储多个企鹅信息,然后统一使用Iterator进行遍历 package fffffr\; import java.util.HashMap; import java.util.Iterator; impor 阅读全文
摘要:
package chap; import java.util.ArrayList; public class test { public static void main(String[] args) { // TODO Auto-generated method stub ArrayList<St 阅读全文
摘要:
1.编写一个随机生成 10个 0(包括) 到 100 之间的随机正整数。 package fffff; import java.util.Random; public class test { public static void main(String[] args) { Random r = n 阅读全文
摘要:
1.编写一个程序,实现字符串大小写的转换并倒序输出。要求如下(1)使用for循环将字符串“ Hello world”从最后一个字符开始遍历(2)遍历的当前字符如果是大写字符,就使用 toLower Case()方法将其转换为小写字符,反之则使用 toUpper Case()方法将其转换为大写字符。( 阅读全文
摘要:
package ffff; import java.util.Scanner; public interface Shuiguo{ } class Apple implements Shuiguo { public Apple() { System.out.println("创建了一个苹果对象"); 阅读全文
摘要:
package ffff; public class ColaEmployee { String name; int month; public ColaEmployee() { super(); // TODO Auto-generated constructor stub } public Co 阅读全文
摘要:
1、(1)定义一个汽车类Vehicle,要求如下:(知识点:类的继承 方法的覆盖)(a)属性包括:汽车品牌brand(String类型)、颜色color(String类型)和速度speed(double类型)。(b)至少提供一个有参的构造方法(要求品牌和颜色可以初始化为任意值,但速度的初始值必须为0 阅读全文