public class TugasBuku{
public static void main (String args[])throws IOException{
BufferedReader input=new BufferedReader (new InputStreamReader(System.in));
System.out.print("Nama Buku :");
String nama=input.readLine();
System.out.print("Pengarang :");
String pengarang=input.readLine();
System.out.print("Penerbit :");
String penerbit=input.readLine();
System.out.print("Stok :");
String no_stok=input.readLine();
int stok=Integer.parseInt(no_stok);
System.out.print("Harga Buku :");
String no_buku=input.readLine();
int harga=Integer.parseInt(no_buku);
System.out.print("jumlah Beli :");
String jumlah=input.readLine();
int jumlah_beli=Integer.parseInt(jumlah);
buku buku2=new buku(nama,pengarang,penerbit,stok,harga,jumlah_beli);
}
}
0 comments:
Posting Komentar