日韩欧美亚洲 _ 欧美亚洲一区 _ 日本亚洲欧美 _ 亚洲精品欧美 国产白袜脚足J棉袜在线观看_亚洲熟妇av一区二区三区_久久天天躁狠狠躁夜_精品众筹模特私拍在线

單項選擇題

Given a class Repetition: 
1. package utils; 
2. 
3. public class Repetition { 
4. public static String twice(String s) { return s + s; } 
5. } 
and given another class Demo: 
1. // insert code here
2. 
3. public class Demo { 
4. public static void main(String[] args) { 
5. System.out.println(twice(”pizza”)); 
6. } 
7. } 
Which code should be inserted at line 1 of Demo.java to compile and run Demo to print“pizzapizza”?() 

A. import utils.*;
B. static import utils.*;
C. import utils.Repetition.*;
D. static import utils.Repetition. *;
E. import utils.Repetition.twice();
F. import static utils.Repetition.twice;
G. static import utils.Repetition.twice;

題目列表

你可能感興趣的試題

微信掃碼免費搜題