📄 j02060205.java
字号:
import java.lang.*;
class j02060205
{
public static void main(String[] args)
{
Runtime theRT = Runtime.getRuntime(); //建构 Runtime 类别对象
Character[] ch1 = new Character[260];
for(int x =0;x<ch1.length;x++)
{
ch1[x] = new Character( (char)(x%26+65) );
if(x>=26 && x%26==0 )
System.out.println("");
System.out.print(ch1[x]);
}//产生了 260 个 Character 对象
System.out.println();
ch1 = null; //之后不想再使用此 ch1 对象实体了
theRT.gc(); //建议 JVM 收拾 ch1 之前参考的实体,释出空间
boolean[] myAns = new boolean[100];
myAns[0]= true; myAns[1]= true; myAns[2]= false; myAns[3]= true;
//myAns[4]= true;......
for(int x =0;x<myAns.length;x++)
{
if(x>=10 && x%10==0 )
System.out.println("");
System.out.print(myAns[x]+" ");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -