MEMBUAT CLASS BELAJARJAVA
public class belajarjava
{
public static void main ( String [] args )
{
System.out.println( " Selamat Datang Di Lab D " );
System.out.println( " Mari Belajar Java " );
}
}
Hasil Program Class Belajarjava
MEMBUAT CLASS BIODATA
public class biodata
{
public static void main ( String [] args )
{
System.out.println( " Nama = Hasto S " );
System.out.println( " NIM = 12090626 " );
System.out.println( " Kelas = 12.5AB.01 ");
System.out.println( " Jurusan = Teknik Informatika ");
System.out.println( " Kampus = Nusa Mandiri, Kramat Raya No. 25 ");
}
}
Hasil Program Class Biodata
MEMBUAT CLASS DENGAN GUI
import javax.swing.JOptionPane;
public class salamGui
{
public static void main (String args [])
{
JOptionPane.showMessageDialog (null, "Saya Sedang Belajar Java","Salam",1);
System.exit(0);
}
}
Hasil Program Class Dengan Import JOption Pane (GUI)
public class belajarjava
{
public static void main ( String [] args )
{
System.out.println( " Selamat Datang Di Lab D " );
System.out.println( " Mari Belajar Java " );
}
}
Hasil Program Class Belajarjava
MEMBUAT CLASS BIODATA
public class biodata
{
public static void main ( String [] args )
{
System.out.println( " Nama = Hasto S " );
System.out.println( " NIM = 12090626 " );
System.out.println( " Kelas = 12.5AB.01 ");
System.out.println( " Jurusan = Teknik Informatika ");
System.out.println( " Kampus = Nusa Mandiri, Kramat Raya No. 25 ");
}
}
Hasil Program Class Biodata
MEMBUAT CLASS DENGAN GUI
import javax.swing.JOptionPane;
public class salamGui
{
public static void main (String args [])
{
JOptionPane.showMessageDialog (null, "Saya Sedang Belajar Java","Salam",1);
System.exit(0);
}
}
Hasil Program Class Dengan Import JOption Pane (GUI)
Tidak ada komentar:
Posting Komentar