Teknik Informatika's World

Minggu, 11 Mei 2014

Pertemuan kedua praktikum

 Ini cuma suruh cek variable :D
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pertemuan2_modul1;

/**
 *
 * @author pemrograman
 */
public class cek_variabel {
    public static void main (String args[])
    {
        // Data variabel dan jenis tipe datanya
       
        String c="empat";
        int i=4;
        double a=4d;
        boolean b=true;
        String nama="Ahmad Dhani";
        char x='X';
       
        System.out.println(i);
        System.out.println(a);
        System.out.println(c);
        System.out.println(b);
        System.out.println(nama);
        System.out.println(x);
      }
   
}

Trus buat biodata nih :D










/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pertemuan2_modul1;

/**
 *
 * @author pemrograman
 */
public class tugas2 {
   public static void main (String[]args)
   {
       String A;
       A= "Nama\t\t: Fitri Zakiyatul Hidayah "
               + "\nAlamat\t\t: Probolinggo"
               + "\nEmail\t\t: Victoryzz95@gmail.com"
               + "\nGender\t\t: Perempuan"
               + "\nSekolah asal\t: SMA Darul Ulum 1 Jombang"
               + "\nNama bapak\t: Syafi'uddin"
               + "\nNama ibu\t: Nurainiyah Shaleh"
               + "\nHobi\t\t: 1. Menulis"
               + "\n\t\t  2. Menggambar";
      
       System.out.println (A);
      
   }
           
   
}

Tidak ada komentar:

Posting Komentar