import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class data{
public static void main (String[] args) {
BufferedReader
masukan = new BufferedReader(new InputStreamReader(System.in));
String
nama="";
String
alamat="";
String
telp="";
String
kelas="";
String
hoby="";
int
jumlah= 1;
int
count= 0;
while
( count < jumlah)
{
System.out.print("Nama
Anda:");
try{
nama=masukan.readLine();
}catch(IOException
e){
System.out.println("Error!");
}
System.out.print("Alamat
di:");
try{
alamat=masukan.readLine();
}catch(IOException
e){
System.out.print("Error!");
}
System.out.print("No
telepon anda:");
try{telp=masukan.readLine();
}catch(IOException
e){
System.out.println("Error!");
}
System.out.print("kelas:");
try{kelas=masukan.readLine();
}catch(IOException
e){
System.out.println("Error!");
}
System.out.print("hoby:");
try{hoby=masukan.readLine();
}catch(IOException
e){
System.out.println("Error!");
}
System.out.println("\nBiodata
Anda");
System.out.println("Nama:"+nama);
System.out.println("Alamat:"+alamat);
System.out.println("No
telepon:"+telp);
System.out.println("kelas:"+kelas);
System.out.println("hoby:"+hoby);
System.out.println();
count++;
}
}
}
2 komentar
itu disimpan dengan format ekstensi apa ya?
Reply@ruro kyk itu dari apalikasi algoritma deh
ReplyPosting Komentar