2017年12月18日
摘要: 阅读全文
posted @ 2017-12-18 14:26 还要名字 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-12-18 14:25 还要名字 阅读(71) 评论(0) 推荐(0) 编辑
摘要: public class TV { public int channel=1; public int volumeLevel=1; public boolean on=false; public TV() { } public void turnOn() { on =true; System.out 阅读全文
posted @ 2017-12-18 14:23 还要名字 阅读(132) 评论(0) 推荐(0) 编辑
  2017年11月26日
摘要: package com.aila; public class ailale { public static void main(String[] args) { int[] arr = {1,5,6,7,9,8,3,0,2,4}; for(int i = 0;i < arr.length;i++) 阅读全文
posted @ 2017-11-26 22:07 还要名字 阅读(142) 评论(0) 推荐(0) 编辑
  2017年11月20日
摘要: 1 abstract class A{ 2 private String name; 3 public A(String name) { 4 this.name = name; 5 } 6 public String getName() { 7 return this.name; 8 } ... 阅读全文
posted @ 2017-11-20 13:53 还要名字 阅读(127) 评论(0) 推荐(0) 编辑
  2017年11月5日
摘要: 造人 package wewe; public class A { public int id; public String name; public int age; public String city; public String introduce() { return "My id=" + 阅读全文
posted @ 2017-11-05 13:52 还要名字 阅读(117) 评论(1) 推荐(0) 编辑
摘要: /*3-1 * 功能:产生随机数来执行减法,并从用户中获得数字用以判断正误。 */ import java.util.Scanner; public class AdditionQuiz { public static void main(String[] args) { int number1=( 阅读全文
posted @ 2017-11-05 13:51 还要名字 阅读(225) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner; public class T { public static void main(String[] args) { System.out.println("5+5="+5+5); } } 2. (1) import java.util.Scanne 阅读全文
posted @ 2017-11-05 13:50 还要名字 阅读(96) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner; //表示输入 public class Operation { public static void main(String[] args) //打印处提示 { long l=123456789012345l; System.out.print(" 阅读全文
posted @ 2017-11-05 13:19 还要名字 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 1.2 public class Test{public static void main(String[] args){int i;for(i=1;i<=5;i++){System.out.println("Welcome to java"); }} 1.8 public class Work { 阅读全文
posted @ 2017-11-05 13:18 还要名字 阅读(123) 评论(0) 推荐(0) 编辑