Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- import java.awt.*;
- public class Kennel {
- public void main (String[] args){
- int age;
- String name;
- Scanner scan = new Scanner (System.in);
- System.out.println ( "Enter Name of the Dog: ");
- name = scan.nextLine();
- System.out.println ("Enter the age of the Dog: " );
- age= scan.nextInt();
- dog1 = new Dog(age, name);
- System.out.println("In human years, the dog is: " + Dog.humanYears());
- }
- }
Add Comment
Please, Sign In to add comment