Strdata – TdoubleLinkedList

package Input_DoubleLink;

/**
*
* @author MSI
*/
public class Tsimpul2 {
private int info;
private Tsimpul2 next =null;
private Tsimpul2 prev = null;
public Tsimpul2(int info){
this.info=info;
}
public void setinfo(int info){

}
public int getinfo(){
return this.info;
}
public void setnext(Tsimpul2 next){

}
public Tsimpul2 getnext(){
return this.next;
}
public void setprev(Tsimpul2 prev){
this.prev=prev;
}
public Tsimpul2 getprev(){
return this.prev;
}
public boolean lebihBesar(int info){
return(this.info>info);
}
public boolean samadengan(int info){
return(this.info==info);
}

}

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s