摘要:
package cn.wzx.www; public class Hellow { public static void main(String[] args) { new Hellow().fun(); } public void fun() { System.out.println("Hello World!"); } }... 阅读全文
摘要:
package cn.wax.www; class Person { private String name; private static int count; public Person() { count++; this.name="NONAME -"+count; } public Person(Strin... 阅读全文
摘要:
package cn.wzx.www; public class Person { private int id; private String name; private int age; private String sex; public String introduce() { return "My id=" + id ... 阅读全文
摘要:
package cn.wzx.www; import java.util.Scanner; public class AdditionQuiz { public static void main(String[] args) { // TODO 自动生成的方法存根 int number1=(int)(System.currentTimeMillis(... 阅读全文
摘要:
public class Sum { public static void main(String[] args) { System.out.println("5+5="+5+5); } } public class Increment{ public static void main(String 阅读全文
摘要:
//程序员:王智霞 //1、输出一个长整型的变量 public class Long{ public static void main(String[] args) { long l=123456789012345l;//java中默认类型为Int型,电脑想要识别长整型需加l(或L) System. 阅读全文