Program Java Input dan Output Menggunakan BufferedReader



Coding :


import java.util.Scanner;
import java.io.*;
import javax.swing.JOptionPane;

class io{
    public static void main(String[] args){
        String  nama;
       
    //Menggunakan option BufferedReader
    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
    nama = input.readLine();
    System.out.println("Masukan nama :"+nama);   
   
    }
}

Related Posts

java 6006346828764453117

Post a Comment

2018. Powered by Blogger.

Search

Popular Posts

Labels