This Java code prompts a user to input their name, student ID number, semester, and major by printing messages to the console. It takes the user input using a BufferedReader and stores each entry in a corresponding string variable - Nama, Nim, Semester, and Jurusan.
1 of 1
Download to read offline
More Related Content
Dill
1. package inputan1;=> berdasarkan nama project
import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader in = new BufferedReader (new InputStreamReader
(System.in));
System.out.println ("Masukkan Nama :" );
String Nama = in.readLine();
System.out.println ("Masukkan Nim :" );
String Nim = in.readLine();
System.out.println ("Masukkan Semester :" );
String Semester = in.readLine();
System.out.println ("Masukkan Jurusan :" );
String Jurusan = in.readLine();
}
}