03 2015 档案
摘要:public class StringAPIDemo01 { public static void main(String args[]){ String str ="hello"; char c[]=str.toCharArray(); for(int i=0;i<c.length;i++)...
阅读全文
摘要:定义并测试一个名为Student的类,包括的属性有学号,姓名以及3门课程数学,英语和计算机的成绩,包括的方法有3门课程的总分,平均分,最高分及最低分。class Student{ private String stuno; private String name; private float m...
阅读全文
摘要:对象的创建类名 对象名称 = null; // 声明对象对象名称 =new 类名(); //实例化对象 以上格式产生对象分为声明对象和实例化对象两步 。 当然也可以一步直接实现。类名 对象名称 =new ...
阅读全文
摘要:public class ArrayDemo01 { public static void main(String[]args){ int score[]=null; score=new int[3]; System.out.println("score[0]="+score[0]); Sy...
阅读全文
浙公网安备 33010602011771号