class NonPrimitif {
public static void main(String[] args) {
String alamat ="Jl. Maharaja Indra No. 30";
System.out.println("String alamat:"+ alamat);
int[] angka ={ 10,3,44,21};
System.out.println("contoh array :"+ angka[1]);
contoh c = new contoh();
System.out.println("contoh object: "+ c.tampil());
}
}
class contoh {
private int angka = 10;
public int tampil() {
return angka;
}
}