import java.io.*;
class mhsku{
mhsku(String nama, int nim, String jurusan, int tinggi_badan, int berat_badan, String warna_rambut){
System.out.println("Nama :"+nama);
System.out.println("Nim :"+nim);
System.out.println("Jurusan :"+jurusan);
System.out.println("TinggiBadan :"+tinggi_badan);
System.out.println("BeratBadan :"+berat_badan);
System.out.println("WarnaRambut :"+warna_rambut);
}
}
public class BiodataMhsku{
public static void main(String args[])throws IOException{
BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Nama anda :");
String nama=input.readLine();
System.out.print("NIM anda :");
String no_pokok=input.readLine();
int nim=Integer.parseInt(no_pokok);
System.out.print("Jurusan anda :");
String jurusan=input.readLine();
System.out.print("tinggi badan anda :");
String tinggi_badan1=input.readLine();
int tinggibadan=Integer.parseInt(tinggi_badan1);
System.out.print("berat badan anda :");
String berat_badan=input.readLine();
int beratbadan=Integer.parseInt(berat_badan);
System.out.print("Warna rambut anda :");
String warna_rambut=input.readLine();
mhsku mhs1 = new mhsku (nama,nim,jurusan,tinggibadan,beratbadan,warna_rambut);
}
}
class mhsku{
mhsku(String nama, int nim, String jurusan, int tinggi_badan, int berat_badan, String warna_rambut){
System.out.println("Nama :"+nama);
System.out.println("Nim :"+nim);
System.out.println("Jurusan :"+jurusan);
System.out.println("TinggiBadan :"+tinggi_badan);
System.out.println("BeratBadan :"+berat_badan);
System.out.println("WarnaRambut :"+warna_rambut);
}
}
public class BiodataMhsku{
public static void main(String args[])throws IOException{
BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Nama anda :");
String nama=input.readLine();
System.out.print("NIM anda :");
String no_pokok=input.readLine();
int nim=Integer.parseInt(no_pokok);
System.out.print("Jurusan anda :");
String jurusan=input.readLine();
System.out.print("tinggi badan anda :");
String tinggi_badan1=input.readLine();
int tinggibadan=Integer.parseInt(tinggi_badan1);
System.out.print("berat badan anda :");
String berat_badan=input.readLine();
int beratbadan=Integer.parseInt(berat_badan);
System.out.print("Warna rambut anda :");
String warna_rambut=input.readLine();
mhsku mhs1 = new mhsku (nama,nim,jurusan,tinggibadan,beratbadan,warna_rambut);
}
}
0 comments:
Posting Komentar