You are on page 1of 1

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

*/ package mobil; /** * * @author FTIK */ public class Mobil { /** * @param args the command line arguments */ String warna; int tahunProduksi; // TODO code application logic here } Source code pada mobilberaksi.java /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package mobil; /** * * @author FTIK */ public class MobilBeraksi { /** * @param args the command line arguments */ public static void main(String[] args) { Mobil mobilku = new Mobil(); mobilku.warna = "Hitam"; mobilku.tahunProduksi = 1945; System.out.println("Warna mobil:"+mobilku.warna); System.out.println("Tahun mobil:"+mobilku.tahunProduksi); // TODO code application logic here } }

You might also like