Андрей Лахнов
Ученик
(174),
на голосовании
5 лет назад
При выполнении данной программы ответ в консоли не появляется:
class Movie{ String title; String genre; int raiting; void playIt(){ System.out.println("Play Movie"); } } public class MovieTestDrive{ public static void main(String[] args){ Movie one = new Movie(); one.title = "How To Blowning Up?"; one.genre = "Tragedic"; one.raiting = -2; Movie two = new Movie(); two.title = "LOST"; two.genre = "Horror"; two.raiting = 53; two.playIt(); Movie three = new Movie(); three.title = "Alone AT Home"; three.genre = "Comedy"; three.raiting = 153;} }
class Movie{
String title;
String genre;
int raiting;
void playIt(){
System.out.println("Play Movie");
}
}
public class MovieTestDrive{
public static void main(String[] args){
Movie one = new Movie();
one.title = "How To Blowning Up?";
one.genre = "Tragedic";
one.raiting = -2;
Movie two = new Movie();
two.title = "LOST";
two.genre = "Horror";
two.raiting = 53;
two.playIt();
Movie three = new Movie();
three.title = "Alone AT Home";
three.genre = "Comedy";
three.raiting = 153;}
}