java练习程序代码教案分析.doc

package day2015_4_19; public class Yikes { public static void go(Long n){ System.out.print(long); } public static void go(short n){ System.out.print(short); } public static void go(int n){ System.out.print(int); } public static void main(String[] args){ short y = 6; long z = y; go(y); go(z); } } /*this关键字的使用*/ public class ThisDemo2 { public static void main(String[] args){ Person p = new Person(); Person p1 = new Person(30); Person p2 = new Person(张三,20); System.out.println(p1); System.out.println(p2); } } class Person { private String name; private

文档评论(0)

1亿VIP精品文档

相关文档