This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Binatang { | |
public void begerak(){ | |
System.out.println("Binatang bergerak sesuai kemampuannya"); | |
} | |
public void berkembangBiak(){ | |
System.out.println("Binatang berkembang biak sesuai kemampuannya"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ClockDisplay | |
{ | |
private NumberDisplay hours; | |
private NumberDisplay minutes; | |
private String displayString; // simulates the actual display | |
/** | |
* Constructor for ClockDisplay objects. This constructor | |
* creates a new clock set at 00:00. | |
*/ | |
public ClockDisplay() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Exercie 2.83 | |
*/ | |
public class Book | |
{ | |
// The fields. | |
private String author; | |
private String title; | |
/** | |
* Set the author and title fields when this object |
NewerOlder