(6-3)阅读程序,写出程序运行结果。 class Book{ private static int counter=0; private int id=1; private String name; public Book(String name) { this.name = name; counter++; this.id=this.id+8; } public static int getCounter() { return counter; } public int getID() { return this.id; } } public class BookDemo{ public static void main(String[] args) { Book b1=new Book("红楼梦"); Book b2=new Book("西游记"); Book b3=new Book("儒林外史"); System.out.println(b3.getCounter()*Book.getCounter()*b3.getID()); } }
(6-3)阅读程序,写出程序运行结果。 class Book{ private static int counter=0; private int id=1; private String name; public Book(String name) { this.name = name; counter++; this.id=this.id+8; } public static int getCounter() { return counter; } public int getID() { return this.id; } } public class BookDemo{ public static void main(String[] args) { Book b1=new Book("红楼梦"); Book b2=new Book("西游记"); Book b3=new Book("儒林外史"); System.out.println(b3.getCounter()*Book.getCounter()*b3.getID()); } }
The Six Classics include the Book of Changes, ____, the Book of History, the Book of Rituals, the Book of Music and the Spring and Autumn Annals. A: the Book of Manners B: the Book of Nature C: the Book of Songs
The Six Classics include the Book of Changes, ____, the Book of History, the Book of Rituals, the Book of Music and the Spring and Autumn Annals. A: the Book of Manners B: the Book of Nature C: the Book of Songs
声明并实例化Book类型的一个新对象,正确的是()。 A: Book b; B: Book b = new Book(); C: Book b = new Book[]; D: Book b =Book();
声明并实例化Book类型的一个新对象,正确的是()。 A: Book b; B: Book b = new Book(); C: Book b = new Book[]; D: Book b =Book();
alFoxPro中,如果用语句:a="book",book="展望",?a,book后,结果是:book展望
alFoxPro中,如果用语句:a="book",book="展望",?a,book后,结果是:book展望
I would like to book a booth. “Book a booth” means_______. A: book a ticket B: cancel a booth C: book a stand D: book a room
I would like to book a booth. “Book a booth” means_______. A: book a ticket B: cancel a booth C: book a stand D: book a room
The teacher went into the classroom, _______. A: with book in hand B: a book in hand C: with a book in hand D: book in hand
The teacher went into the classroom, _______. A: with book in hand B: a book in hand C: with a book in hand D: book in hand
Where is the book? I bought the book this morning. A: Where is the book which I bought the book this morning B: Where is the book which I bought this morning
Where is the book? I bought the book this morning. A: Where is the book which I bought the book this morning B: Where is the book which I bought this morning
The Four Books are The Book of Poetry, The Book of History, __4__ and The Book of Changes.
The Four Books are The Book of Poetry, The Book of History, __4__ and The Book of Changes.
Which of the following is not the work of Confucius? A: Book of Rites B: Book of Music C: Book of Odes D: Book of Beauty
Which of the following is not the work of Confucius? A: Book of Rites B: Book of Music C: Book of Odes D: Book of Beauty
—Is this a Chinese book or an English book?—Oh, _________. A: yes, it is B: no, it isn't C: an English book D: a music book
—Is this a Chinese book or an English book?—Oh, _________. A: yes, it is B: no, it isn't C: an English book D: a music book