belajar java dan tutorial netbean

tutorial java, contoh aplikasi dengan netbean

a

Total Tayangan Halaman

Diberdayakan oleh Blogger.

ridwan mulyadi added you to his circles and invited you to join Google+

ridwan mulyadi added you to his circles and invited you to join Google+.
Join Google+
Google+ makes sharing on the web more like sharing in real life.
Circles
An easy way to share some things with college buddies, others with your parents, and almost nothing with your boss. Just like in real life.
Hangouts
Conversations are better face-to-face. Join a video hangout from your computer or mobile phone to catch up, watch YouTube videos together, or swap stories with up to 9 of your friends at once.
Mobile
Lightning-fast group chat. Photos that upload themselves. A bird's-eye view of what's happening nearby. We built Google+ with mobile in mind.
You received this message because ridwan mulyadi invited mrsyaifulridlo.pbostimik@blogger.com to join Google+. Unsubscribe from these emails.
Google Inc., 1600 Amphitheatre Pkwy, Mountain View, CA 94043 USA
Tugas Konstruktor, Elviana (SI)

Tugas Konstruktor, Elviana (SI)

MAIN CLASS

 
public class fauna {
   
    public static void main(String[] args) {
    binatang caty = new binatang("caty","kucing");
    binatang b = new binatang("nama","jenis");
    }
}

CLASS

class binatang {
String nama;
String jenis;
int kaki;
int tangan;

binatang(String nama, String jenis){
System.out.println("caty kucing");

this.nama = nama;
this.jenis = jenis;
}
}

Tugas Konstruktor, Endang Sri Wahyuni (SI) 2012

Tugas Konstruktor, Endang Sri Wahyuni (SI) 2012

MAIN CLASS

/**
 * @(#)TugasKonstruktorE.java
 *
 * TugasKonstruktorE application
 *
 * @author
 * @version 1.00 2014/4/18
 */
 
public class TugasKonstruktorE {
   
    public static void main(String[] args) {
       
        // TODO code application logic here
       
        Permen Kopiko=new Permen("Kopiko","Cokelat");
        Permen b=new Permen("Nama","Rasa");
    }
}


CLASS


class Permen {
    String nama;
    String rasa;
    int harga;
   
    Permen(String nama,String rasa){
        System.out.println("Kopiko Cokelat");
       
        this.nama=nama;
        this.rasa=rasa;
    }
}

Tugas Konstruktor, Endang Sri Wahyuni (SI)

Tugas Konstruktor, Endang Sri Wahyuni (SI)

MAIN CLASS

/**
 * @(#)TugasKonstruktorE.java
 *
 * TugasKonstruktorE application
 *
 * @author
 * @version 1.00 2014/4/18
 */
 
public class TugasKonstruktorE {
   
    public static void main(String[] args) {
       
        // TODO code application logic here
       
        Permen Kopiko=new Permen("Kopiko","Cokelat");
        Permen b=new Permen("Nama","Rasa");
    }
}

CLASS

class Permen {
    String nama;
    String rasa;
    int harga;
   
    Permen(String nama,String rasa){
        System.out.println("konstruktor 2 dipanggil");
       
        this.nama=nama;
        this.rasa=rasa;
    }
}


tugas konstruktor

tugas konstruktor

public class buah {

 

    public static void main(String[] args) {

                // TODO code application logic here

                apel merah=new apel("merah","rosaseae");

                apel a=new apel("nama","jenis");

               

    }

}

 

 

class apel {

                String nama;

                String jenis;

                int merah;

                int harga;

                apel(String nama,String jenis){

                                System.out.println("konstruktor 2 dipanggil");

                                this.nama=nama;

                                this.jenis=jenis;

                }             

}



tugas konstruktor

Susianik

S1 Sistem Informasi

tugas konstruktor

tugas konstruktor

public class kendaraan {

   

    public static void main(String[] args) {

               

                // TODO code application logic here

                darat motor=new darat("motor","Vario");

                darat a=new darat("nama","jenis");

 

   

    }

}





class darat {

                String nama;

                String jenis;

                int roda;

                int harga;

                darat(String nama,String jenis){

                                System.out.println("konstruktor 2 dipanggil");

                                this.nama=nama;

                                this.jenis=jenis;

                }

}


tugas konstruktor

S1 Sistem Informasi




tugas this

tugas this

public class fashion {

   

    public static void main(String[] args) {

   

                sepatu a = new sepatu();

a.ubahData("New Era", 150, "hitam merah");

 

a.tampilData();

 

    }

   

}



class sepatu {

String nama;

                int harga;

                String warna;

                void ubahdata(String nama){

                                System.out.println("ubahdata(1)");

                                this.nama = nama;

                }

                void ubahdata(String nama,int harga){

                                System.out.println("ubahdata(2)");

                                this.nama=nama;

                                this.harga=harga;

                }

                 void ubahData(String nama, int harga, String warna){

System.out.println("ubahData(3)");

this.nama = nama;

this.harga= harga;

this.warna = warna;

}

 

void tampilData(){

System.out.println("Nama : " + nama);

System.out.println("Harga : " + harga);

System.out.println("warna : " + warna);

}

 

 

}

tugas konstruktor

tugas konstruktor

public class kendaraan {

   

    public static void main(String[] args) {

               

                // TODO code application logic here

                darat motor=new darat("motor","Vario");

                darat a=new darat("nama","jenis");

 

   

    }

}




class darat {

                String nama;

                String jenis;

                int roda;

                int harga;

                darat(String nama,String jenis){

                                System.out.println("konstruktor 2 dipanggil");

                                this.nama=nama;

                                this.jenis=jenis;


                }

}