Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package uts;
- import java.util.*;
- public class main {
- public static void main(String[] args) {
- System.out.println("Selamat datang di I-Kios");
- Scanner scan = new Scanner(System.in);
- System.out.print("Masukkan nama > ");
- String nama = scan.nextLine();
- System.out.print("Masukkan alamat > ");
- String alamat = scan.nextLine();
- // System.out.print(cus.getAlamat());
- System.out.print("Masukkan no telepon > ");
- int hp = scan.nextInt();
- customer cus = new customer(nama,alamat,hp);
- // System.out.println(cus.name + cus.getAlamat() + cus.getHp());
- cus.buyProduct();
- // cus.setId(10);
- // System.out.print("lol" + input );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement