?? tester.java
字號:
package com.ict.netcom2.trash;
import java.nio.*;
import java.util.*;
public class Tester {
/**
* @param args
*/
public static void main(String[] args) {
byte[] b= new byte[2];
b[0] = 0;
b[1] = 0;
A a = new A();
a.i = 1;
a = new B();
HashMap<String,Integer> map = new HashMap<String,Integer>();
map.put("123", 123);
map.put("123", 321);
System.out.println(map.get(new String("123")));
String str = "1 2 3 4 5 ";
String[] nidaye = str.split(" ");
for (int i=0; i<nidaye.length; i++)
System.out.println(nidaye[i]);
}
static void change(byte[] b) {
b[0] = 1;
}
public static void read1(ByteBuffer buf) {
System.out.println(buf.get());
read2(buf);
}
public static void read2(ByteBuffer buf) {
System.out.println(buf.get());
}
}
class A {
int i;
}
class B extends A{
int j = -1;
public B() {
this.i = super.i;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -