xingchao
发贴: 32
积分: 0
|
于 2006-04-29 15:48
import java.io.*; class Person{ Person(String n,int a,int id){ NAME = n; ADDRESS = a; ID = id;
public void B{ BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in)); System.out.println("输入姓名"); String s1 = stdin.readline(); System.out.pintln("输入地址"); String s2 = stdin.readline(); System.out.println("输入身份证号"); String s3 = stdin.readline(); n = s1; int a = Integer.parseInt(s2); int id = Integer.parseInt(s3); } private String NAME; private int ADDRESS; private int ID; }
class CollegeStudent extends Person{ public void print(){ String n; super(); SchoolName = n; BufferedReader buf = new Bufferedreader(new InputStringReader(System.in)); System.out.println("输入学校名字"); String s = buf.readline(); n = s; } private String SchoolName(); } public static void main(String args[]){ new CollegeStudent.print(); } } 这个程序错在那里了?? 该怎么修改阿 那位能人能帮帮我 谢谢啦!!!
{ you may want to tell us what the error messages are. }
why edited on 2006-04-29 20:08
|