import java.io.*;
class demoinputstring{
public static void main(String[] args) throws IOException{
System.out.print("MAsukkan Nama Anda : ");
String nama;
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
nama = br.readLine();
System.out.println("Halo " + nama + ", sudahkah anda mengerti java?");
}
}
Tidak ada komentar:
Posting Komentar