Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import static java.lang.System.*;
- public class Code
- {
- public static void main(String args[]) {
- Code dog = new Code();
- dog.whimper();
- dog.speak();
- dog.speakTwice();
- }
- public void speak()
- {
- System.out.println("Bork!");
- }
- public void speakTwice()
- {
- System.out.println("ROOF");
- System.out.println("ROOF");
- }
- public void whimper(){
- System.out.println("whimper");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement