Tuesday, January 3, 2012

membuat program inputan dari user dari JAVA


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

/**
*
* @author cinul
*/
public class input {
public input(){}

public static void main (String[] args) throws IOException{
String read;
System.out.print("Masukkan input kata : ");
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
read = br.readLine().toString();
System.out.print("Kata yang anda ketikkan adalah : " + read);


}
}

1 comment: