import java.io.*;
class Book implements Serializable{
String name;
double price1, price2, price3;
void show(){System.out.println(name + "\t" + price1 + "\t" + price2 + "\t" + price3 + "\n");}
}
class ObjectInOutEx{
public static void main(String[] args) throws Exception{
File file_Book1 = new File("score.txt");
file_Book1.createNewFile();
Book book1 = new Book();
System.out.print("請輸入學號: ");
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
book1.name = br.readLine();
System.out.print("請輸入國文分數: ");
isr = new InputStreamReader(System.in);
br = new BufferedReader(isr);
book1.price1 = Double.parseD ..
訪客只能看到部份內容,免費 加入會員 或由臉書 Google 可以看到全部內容