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