Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package app;
- import zoo.Animal;
- import zoo.Bear;
- import java.util.Scanner;
- public class Fauna {
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- Scanner input = new Scanner(System.in);
- Bear bear = new Bear();
- System.out.println("Podaj posilek: ");
- bear.meal = input.nextLine();
- System.out.println(bear.meal);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement