import javax.print.DocFlavor.STRING;
public class Main {
public static void main(String[] args) {
// output ke layar sys
// System.out.println("Hello");
// jalankan program Ctrl + F11
Scanner input1 = new Scanner(System.in);
// cara ambil inputan
// scanner.nextLine();
System.out.print("Masukkan nama anda : ");
char s = (char) input1.nextInt();
System.out.println("Hello " + s);
}
}
No comments:
Post a Comment