Silahkan running di Netbeans atau Eclipse :

package DasarJava;

//ProgramInputDataMhsSatrioDwiPrabowo
import java.io.*;
public class InputDariKeyboard1{
public static void main(String[] args){
String NIM=””, nama=””;
byte nilAbsen=0, nilTugas=0, nilUTS=0, nilUAS=0;
  BufferedReader XSSDP = new BufferedReader(new InputStreamReader(System.in));
  try{
 System.out.println(“====================================================================”);
 System.out.println(“t Input Data Mahasiswa Telkom PDC Karawang       “);
 System.out.println(“====================================================================”);
 System.out.println(“NIMtt:  “);   NIM=XSSDP.readLine();
 System.out.println(“Namatt:  “);   nama=XSSDP.readLine();
 System.out.println(“Nilai Absent:  “);  nilAbsen=Byte.parseByte(XSSDP.readLine());
 System.out.println(“Nilai Tugast:  “);  nilTugas=Byte.parseByte(XSSDP.readLine());
 System.out.println(“Nilai UTSt:  “);  nilUTS=Byte.parseByte(XSSDP.readLine());
 System.out.println(“Nilai UASt:  “);  nilUAS=Byte.parseByte(XSSDP.readLine());
 System.out.println(“====================================================================nn”);
  }
catch(Exception e){
 System.out.println(“Error : “+e);
}
  System.out.println(“====================================================================”);
System.out.println(“tCetak Data Mahasiswa Telkom PDC    “);     System.out.println(“====================================================================”);
System.out.println(“NIMtt: “+NIM);     System.out.println(“namatt: “+nama);     System.out.println(“Nilai Absent: “+nilAbsen);     System.out.println(“Nilai Tugast: “+nilTugas);     System.out.println(“Nilai UTSt: “+nilUTS);     System.out.println(“Nilai UASt: “+nilUAS);      }
}

NB : Class name nya samain ya :p