Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- class apples{
- public static void main(String args[]){
- Tuna tunaObject = new Tuna();
- Tuna tunaObject2 = new Tuna(5);
- Tuna tunaObject3 = new Tuna(5, 13);
- Tuna tunaObject4 = new Tuna(5, 13, 43);
- System.out.printf("%s\n", tunaObject.toMilitary());
- System.out.printf("%s\n", tunaObject2.toMilitary());
- System.out.printf("%s\n", tunaObject3.toMilitary());
- System.out.printf("%s\n", tunaObject4.toMilitary());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement