public class ISOtream1 {
public static void main(String[] args) {
<?> out = null;
try {
out = new <?>(new <?>(<?>));
out.<?>("would");
out.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

pcwiki 發表在 痞客邦 留言(0) 人氣()

public class Forest {
public static void main(String[] args){
DateFormat df = new DateFormat() {
@Override
public java.util.Date parse(String source, ParsePosition pos) {
// TODO Auto-generated method stub
return null;
}
@Override
public StringBuffer format(java.util.Date date, StringBuffer toAppendTo,
FieldPosition fieldPosition) {
// TODO Auto-generated method stub
return null;
}
};
Date date=new Date();
df.setLocale(Local.Ialy);
}
}

pcwiki 發表在 痞客邦 留言(0) 人氣()

  • Nov 10 Sat 2012 15:55
  • 03

public class Forest {
public static void main(String[] args){
String test = "This is a test";
String[] tokens = test.split("\s");
System.out.println(tokens.length);
}
}

pcwiki 發表在 痞客邦 留言(0) 人氣()

  • Nov 10 Sat 2012 15:34
  • 02

題目:
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;

pcwiki 發表在 痞客邦 留言(0) 人氣()

  • Nov 10 Sat 2012 14:45
  • 01

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.ObjectOutputStream;

public class Forest {
private Tree tree = new Tree();
public static void main(String[] args){
Forest f = new Forest();
try {
FileOutputStream fs = new FileOutputStream("Forest.ser");
ObjectOutputStream os = new ObjectOutputStream(fs);
os.writeObject(f);
os.close();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
class Tree{}

pcwiki 發表在 痞客邦 留言(0) 人氣()

1
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。