public class DelapanTipe {
    public static void main(String[] args) {
        byte umurBulan = 25;              // 1 byte, cukup untuk angka kecil
        short populasiDesa = 7800;        // 2 byte
        int populasiKota = 8600000;       // 4 byte, tipe bilangan bulat default
        long jarakMatahari = 149600000000L; // 8 byte, akhiran L wajib
        float beratBadan = 62.5f;         // 4 byte, akhiran f wajib untuk desimal
        double tinggiBadan = 168.75;      // 8 byte, tipe desimal default
        char nilaiHuruf = 'A';            // 2 byte, satu karakter UTF-16
        boolean sudahLulus = true;        // ukuran tidak ditetapkan spesifikasi

        System.out.println("byte   umurBulan       = " + umurBulan);
        System.out.println("short  populasiDesa     = " + populasiDesa);
        System.out.println("int    populasiKota    = " + populasiKota);
        System.out.println("long   jarakMatahari   = " + jarakMatahari);
        System.out.println("float  beratBadan      = " + beratBadan);
        System.out.println("double tinggiBadan     = " + tinggiBadan);
        System.out.println("char   nilaiHuruf      = " + nilaiHuruf);
        System.out.println("boolean sudahLulus     = " + sudahLulus);
    }
}
