网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
A:I've just heard that the tickets for Swan Lake have been sold out!
B:Oh, no!______
A、I was looking forward to it.
B、It doesn't matter.
C、It's not at all interesting.
D、I knew it already.
参考答案
更多 “ A:I've just heard that the tickets for Swan Lake have been sold out!B:Oh, no!______A、I was looking forward to it.B、It doesn't matter.C、It's not at all interesting.D、I knew it already. ” 相关考题
考题
4.I __________my teacher carefully,but l __________nothing.A. listened,listenedB. heard,listened toC.listened to,heardD. listened to,listened
考题
Why()the old block of flats()demolished next month?
A、are…beingB、is…beingC、has…beenD、have…been
考题
I ()supper when I()someone knocking at the door.A、made . . . HeardB、made . . .was heardC、was making . . . was hearingD、was making . . . heard
考题
阅读以下说明和Java代码,填补代码中的空缺,将解答填入答题纸的对应栏内。 【说明】 以下Java代码实现两类交通工具(Flight和Train)的简单订票处理, 类Vehicle、Flight、Train之间的关系如图5-1所示。图5-1【Java代码】 import java.util.ArrayList; import java.util.List; abstract class Vehicle { void book(int n) { //订 n张票 if (getTicket0()=n) { decrease Ticket(n); } else { System.out.println(余票不足!!); } } abstract int getTicket(); abstract void decreaseTicket(int n); }; class Flight (1) { Private (2) tickets=216; //Flight的票数 Int getTicket(){ Return tickets; } void decreaseTicket(int n){ tickets=tickets -n; } } class Train (3) { Private (4) tickets=2016; //Train的票数 int getTicket() { return tickets; } void decreaseticket(int n) { tickets = tickets - n; } } public class Test { public static void main(String[] args) { System.out.println(欢迎订票 ! ); ArrayListVehicle v = new ArrayListVehicle(); v.add(new Flight()); v.add(new Train()); v.add(new Flight()); v.add(new Train()); v.add(new Train()); for (int i=0;iv.size(); i++){ (5) (i+1); //订i+1张票 System.out.println(剩余票数: +v.get(i).getTicket()); } } } 运行该程序时输出如下: 欢迎订票! 剩余票数:215 剩余票数:2014 剩余票数: (6) 剩余票数: (7) 剩余票数: (8)
考题
阅读以下说明和Java代码,填补代码中的空缺,将解答填入答题纸的对应栏内。【说明】以下Java代码实现两类交通工具(Flight和Train)的简单订票处理,类Vehicle、Flight、Train之间的关系如图5-1所示。
【Java代码】
import java.util.ArrayList;import java.util.List; abstract class Vehicle {void book(int n) { //订 n张票if (getTicket0() >=n ) {decrease Ticket(n);} else {System.out.println(“余票不足!!“);}} abstract int getTicket();abstract void decreaseTicket(int n);}; class Flight(1){Private(2)tickets=216; //Flight的票数Int getTicket(){Return tickets;} void decreaseTicket(int n){tickets=tickets - n;}} class Train(3){Private(4)tickets=2016; //Train的票数int getTicket() {return tickets;} void decreaseticket(int n) {tickets = tickets - n; }} public class Test {public static void main(String[] args) {System.out.println(“欢迎订票!");ArrayListVehicle v = new ArrayListVehicle();v.add(new Flight());v.add(new Train());v.add(new Flight());v.add(new Train());v.add(new Train());for(int i=0;iv.size(); i++){(5)(i+1); //订i+1张票System.out.println(“剩余票数:”+v.get(i).getTicket());}}}
运行该程序时输出如下:欢迎订票!剩余票数:215剩余票数:2014剩余票数:(6)剩余票数:(7)剩余票数:(8)
热门标签
最新试卷