摘要:
问:内部类有几种呢?答:内部类可分为以下几种:成员内部类静态内部类方法内部类匿名内部类 阅读全文
posted @ 2014-12-01 22:21
Coca-code
阅读(118)
评论(0)
推荐(0)
摘要:
import java.util.Arrays;public class HelloWorld { //完成 main 方法 public static void main(String[] args) { int[] scores={89 , -23 , 64 , 91 , 119 , 52 ,... 阅读全文
posted @ 2014-12-01 18:21
Coca-code
阅读(298)
评论(0)
推荐(0)
摘要:
import java.util.Arrays; public class HelloWorld { public static void main(String[] args) { // 创建对象,对象名为hello HelloWorld hello = new HelloWorld(); // 调用方法并将返回值保存... 阅读全文
posted @ 2014-12-01 17:21
Coca-code
阅读(509)
评论(0)
推荐(0)
摘要:
一.申明,分配空间int [] scores=new int[5];二.遍历二维数组遍历for(int i=0;i<scores.length;i++){ for(int j=0;j<scores[i].length;j++){ System.out.println(scores[i][j]);}} 阅读全文
posted @ 2014-12-01 00:29
Coca-code
阅读(126)
评论(0)
推荐(0)