
很简单,如果men为10的话,就需要30先令,这样就没有women只有kids,men + women + kids等于30,如果men超过10,那么这个等式将不成立。
程序如下:
public class Story {
public Story(){
for(int men = 0 ; men <= 10 ; men++){
for(int women = 0 ; women <= 20 ; women++){
for(int children = 0 ; children <= 20 ; children++ ){
if( (men + women + children) == 30 && men 3 + women 2 + children == 50){
Systemoutprintln("men =="+men+" women=="+women+" children=="+children);
}
}
}
}
}
public static void main(String[] args) {
new Story();
}
}
请采纳答案,支持我一下。
调试好了 直接用 public static void main(String[] args) { Random rand = new Random();//定义随机数产生器 List list_One = new ArrayList();//定义一等奖数字集合 List list = null; //用list时 /list = new ArrayList();//定义100个随机数 集合 for(int i = 0; i < 100;){//产生100个3位数 的随机不重复数字 if(check(randnextInt(899) + 100,list)){ i++; } }/ //用set时 Set set = new HashSet(); while(setsize() < 100){ setadd(randnextInt(899) + 100); } list = new ArrayList(set); for(int k = 0; k < 5;){//产生5个随机一等奖 if(check(randnextInt(100),list,list_One)) k++; } } for(int a = 0; a < list_Onesize();a++){ Systemoutprintln(list_Oneget(a)); } } / 验证该数字是否在集合中 @param i @param list @return / public static boolean check(int i,List list){ if(listsize() == 0){ listadd(i); }else{ for(int j = 0; j < listsize(); j++){ if(i == listget(j)){ return false; } } listadd(i); } return true; } / 抽取随机数作为中奖的下标(重载) @param i @param list @param list_One @return / public static boolean check(int i,List list,List list_One){ if(listsize() == 0){ list_Oneadd(listget(i)); }else{ for(int j = 0; j < listsize(); j++){ if(i == listget(j)){ return false; } } list_Oneadd(listget(i)); } return true; }
异常的抛出,就是将异常抛给异常处理器,暂时不去处理它。
摘要:《Java程序员面试指南》第7章异常处理及内存管理,本章讲述的是要想成功地成为一名合格的Java程序员,掌握好异常处理机制是编写大型程序必不可少的基本功。本节为大家介绍异常的处理方式之三:throw。
标签:throw Java 程序员 Java程序员面试指南
Oracle帮您准确洞察各个物流环节
74 异常的处理方式之三:throw(1)
异常的抛出,就是将异常抛给异常处理器,暂时不去处理它。本节主要讲解用throw抛出异常的方式,以及如何由try-catch来接收所抛出的异常。
当一个方法发生异常时可以通过throw关键字来抛出异常,把异常抛给它上一级的调用者,抛出的可以是异常引用,也可以是异常对象,它的语法格式如下:
throw 异常对象名; 或者
throw new 异常类名(); 一条throw语句一旦被执行,程序立即转入相应的异常处理程序段,它后面的语句就不再执行了(这一点类似于return语句),而且它所在的方法也不再返回有意义的值。在一个方法中,throw语句可以有多条,但每一次最多只能执行其中的一条。在一般情况下,throw语句都会写在判断语句块中,以避免每次都执行该语句。
代码剖析下面来看一个例子,也许从中你会明白点什么。具体代码如下:
public class catchThows { static int x; public static void main(String argv[]) { double a = Mathrandom() 10; if (x > 0) Systemoutprintln(a / x); else throw new Exception(); // 抛出异常 } public void setX(int x) { thisx = x; } } 运行结果如图71所示。
(大图)图71 运行结果
从上面的运行结果中可以看出,一个方法中如果使用throw来抛出异常,要么自己捕获它,要么声明抛出了一个异常。要声明抛出了异常,需要用throws关键字在方法的头部声明。如果我们将上面的代码修改成下面的代码,那么结果又会怎样呢?
public class catchThows_1 { static int x; public static void main(String argv[]) { new catchThows()setX(0); double a = Mathrandom() 10; if (x > 0) Systemoutprintln(a / x); else try { throw new Exception();// 抛出异常 } catch (Exception e) { Systemoutprintln("出现异常的原因是:"+egetMessage()); } } public void setX(int x) { thisx = x; } } 运行结果如下:
出现异常的原因是:null 还有一种抛出异常的方法是让被调用的方法表示它将不处理异常,该异常将被抛出到它的调用方法中。这点是和throws声明异常很相似的,但它们的位置是完全不同的。具体代码如下:
public class catchThows_2 { void findThows() { try { //抛出方法 throw new ArithmeticException(); } catch(ArithmeticException ae) { throw ae; } } public static void main(String args[]) { catchThows ct=new catchThows(); //对方法进行异常处理 try { ctfindThows(); } catch(ArithmeticException ae) { Systemoutprintln("出现异常的原因是:"+ae); } } } 运行结果如下:
出现异常的原因是:javalangArithmeticException
责任编辑:云霞 TEL:(010)68476606
回书目 上一节 下一节
上一篇: 73 异常的处理方式之二:throws(2) 下一篇: 74 异常的处理方式之三:throw(2)
相关文章
·75 内存的管理(2)
·74 异常的处理方式之三:throw(2)
·173 Java高级编程试题(1)
·171 Java基础编程试题(6)
·171 Java基础编程试题(5)
频道热门
·自己动手写搜索引擎
·112 编写代码(15分钟)
·111 准备工作环境(10分钟)
·软件调试的艺术
·WCF编程(第2版)
此为HelloWorldAppletjava的程序
import javaawt
import javaapplet
public class HelloWorldApplet extends Applet{
public void paint(Graphics g){
gdrawString("Hello World!",25,25);
}
}
下面为html的程序
<html>
<head>
<title>hello world></title>
<body>
<APPLET CODE="HelloWorldAppletclass" width=150 height=25>
</APPLET>
</body>
</html>
注意
<APPLET CODE="HelloWorldAppletclass" width=150 height=25>
code为编译好的class文件
import javaioBufferedReader;
import javaioInputStreamReader;
public class QuestionOne {
/
编程将从键盘输入文本中的子字符串“word”替换为字符串“world”, 并删除所有的子字符串“this”。
序程要求:程序中要包含有注释,对于使用的变量和方法的功能要加以说明。
/
public static void main(String[] args) {
BufferedReader reader = new BufferedReader(new InputStreamReader(
Systemin));
String message = null; // 存储用户输入的字符串
try {
while ((message = readerreadLine()) != null) {
// 打印处理前的字符串
Systemoutprintln("输入的字符串为:" + message);
// 把 word 替换为 world
message = messagereplaceAll("word", "world");
// 把 this 替换为 空
message = messagereplaceAll("this", "");
// 打印处理后的字符串
Systemoutprintln("处理后为:" + message);
}
} catch (Exception e) {
eprintStackTrace();
Systemoutprintln("出现异常,程序退出!");
}
}
}
你自己啥也不参考,自己写个学生信息管理系统。就差不多了。然后再写个生产者和消费者的关系,(线程)。
神啊 ,,原来是你问的啊。。呵呵。我去找找。
简答、论述、程序设计
1、请问 ”2” 、’2’、2之间有什么不同?并回答下面程序的输出结果是什么 (提示:‘2’的ASCII码值是50 )(8分)
class test
{
public static void main(String[] args)
{
int a=2;
int b='2';
Systemoutprintln (a+a);
Systemoutprintln (a+b);
}
}
2、你认为java、C、C++他们之间有没有联系和区别?和C、C++相比,java有哪些优点?(10分)
3、下面两段代码具有多处错误,请找出你认为错误的地方,作上标记,并说明为何出错。如果你认为该行没有错误,请打上√ (12分)
i)public int search (int [10] number) 1、 ______________________
{
number = new int[10]; 2、 ______________________
for (int i=0;i<numberlength;i++) 3、_______________________
{
number[i]=number[i-1]+number[i+1]; 4、_______________________
return number; 5、_______________________
}
}
ii)
class MyclassOne
{
public final int A=365;
public int b;
private float c;
private void myMethodOne(int a)
{
b=a;
}
public float myMethodTwo()
{
return 36;
}
}
class MyClassMain
{
public static void main(String[] args)
{
MyClassOne w1=new MyClassOne();
w1A=12; 6、______________________
w1b=12; 7、_______________________
w1c=12; 8、_______________________
w1myMethodOne(12); 9、_______________________
w1myMethodOne(); 10、_____________________
Systemoutprintln(w1myMethodTwo(12)); 11、___________________
w1c=w1myMethodTwo(); 12、____________________
}
}
请简要说明下面程序的功能
1) public class Sum ( 5分 )
{ public static void main( String args[ ])
{ double sum = 00 ;
for ( int i = 1 ; i <= 100 ; i + + )
sum += 10/(double) i ;
Systemoutprintln( "sum="+sum );
}
}
程序设计:(10分)
编写一个java程序。要求该程序能够具有以下功能:
定义一个坐标类coord。坐标类coord必须满足如下要求:
a)coord类含有两部分数据:横坐标x和纵坐标y。x和y的类型都是int类型。
b)coord类的方法有:
coord( ) : 构造函数,将横坐标和纵坐标的值都赋值为0
coord( int x , int y ) : 构造函数,形参 x 为横坐标的初值,y为纵坐标的初值。
coord coordAdd(int x, int y) : 将当前坐标对象与形参的值相加,所得的结果仍是一个坐标,返回给此方法的调用者。
(提示:可以将两个坐标相加定义为横坐标和横坐标相加,纵坐标和纵坐标相加。例如(1,2)+(3,4)=((1+3),(2+4))=(4,6))
程序设计:(10分)
请编写一个java程序,利用该程序计算并输出 1+2+3+……+100的值
答案
1、请问 ”2” 、’2’、2之间有什么不同?并回答下面程序的输出结果是什么 (提示:‘2’的ASCII码值是50 )(8分)
答:"2"是字符串,'2'算字符。2是数字。
class test
{
public static void main(String[] args)
{
int a=2;
int b='2';
Systemoutprintln (a+a);
Systemoutprintln (a+b);
}
} 输出结果为:4
52
2、你认为java、C、C++他们之间有没有联系和区别?和C、C++相比,java有哪些优点?(10分)
答:java是以c及c++为基础的。许多地方沿用了它们的思想。但最主要的,java是完全面向对象的编程,而c是面向过程,c+则不完全是面向对象。java相对说来,编程更方便,安全,结构,模块化强,易于移植,跨平台性好等。
3、下面两段代码具有多处错误,请找出你认为错误的地方,作上标记,并说明为何出错。如果你认为该行没有错误,请打上√ (12分)
i)public int search (int 错[10] number) 1、 引用时只能是类型不能带值{
number错 = new int[10]; 2、 数组没有下标
for (int i=0;i<numberlength;i++) 3、对
{
number[i]=number[i-1]+number[i+1]错; 4、数组在i+1在i=numberlength-1是超界
return number; 5、对
}
}
ii)
class MyclassOne
{
public final int A=365;
public int b;
private float c;
private void myMethodOne(int a)
{
b=a;
}
public float myMethodTwo()
{
return 36;
}
}
class MyClassMain
{
public static void main(String[] args)
{
MyClassOne w1=new MyClassOne();
w1A=12; 6、错误,试图给final型再次赋值
w1b=12; 7、对Myclassone中b赋值
w1c=12; 8、对myclassone float c赋值
w1myMethodOne(12); 9、调用myclassone的mymethodone形参为int的方法,
w1myMethodOne(); 10、调用myclassone的mymethodone无形参的方法Systemoutprintln(w1myMethodTwo(12)); 11、输出myclassone的mymethodtwo(12)值
w1c=w1myMethodTwo(); 12让c引用mymethodtwo方法
}
}
请简要说明下面程序的功能
1) public class Sum ( 5分 )
{ public static void main( String args[ ])
{ double sum = 00 ;
for ( int i = 1 ; i <= 100 ; i + + )
sum += 10/(double) i ;
Systemoutprintln( "sum="+sum );
}
} 功能为 求出1/1+1/2+1/3+1/4…+1/100的和
程序设计:(10分)
编写一个java程序。要求该程序能够具有以下功能:
定义一个坐标类coord。坐标类coord必须满足如下要求:
a)coord类含有两部分数据:横坐标x和纵坐标y。x和y的类型都是int类型。
b)coord类的方法有:
coord( ) : 构造函数,将横坐标和纵坐标的值都赋值为0
coord( int x , int y ) : 构造函数,形参 x 为横坐标的初值,y为纵坐标的初值。
coord coordAdd(int x, int y) : 将当前坐标对象与形参的值相加,所得的结果仍是一个坐标,返回给此方法的调用者。
(提示:可以将两个坐标相加定义为横坐标和横坐标相加,纵坐标和纵坐标相加。例如(1,2)+(3,4)=((1+3),(2+4))=(4,6))
public class Coord {
int x=100;
int y=200;
public Coord(){
thisx=0;thisy=0;
}
public Coord(int x,int y) {
x=thisx;y=thisy;
}
void coordAdd(int x,int y){
thisx+=x;
thisy+=y;
}
public static void main (String[] args) {
}
}
程序设计:(10分)
请编写一个java程序,利用该程序计算并输出 1+2+3+……+100的值
Sumjava
public class Sum {
public Sum() {
int sum=0;
for(int i=1;i<=100;i++)
sum+=i;
Systemoutprintln("1+2+3+100="+sum);
}
public static void main (String[] args) {
new Sum();
}
}
Java试题(一)
一、 选择
1欲构造ArrayList类的一个实例,此类继承了List接口,下列哪个方法是正确的 ?
A ArrayList myList=new Object();
B List myList=new ArrayList();
C ArrayList myList=new List();
D List myList=new List();
2paint()方法使用哪种类型的参数
A Graphics
B Graphics2D
C String
D Color
3指出正确的表达式
A byte=128;
B Boolean=null;
C long l=0xfffL;
D double=09239d;
4指出下列程序运行的结果
public class Example{
String str=new String("good");
char[]ch={'a','b','c'};
public static void main(String args[]){
Example ex=new Example();
exchange(exstr,exch);
Systemoutprint(exstr+" and ");
Sytemoutprint(exch);
}
public void change(String str,char ch[]){
str="test ok";
ch[0]='g';
}
}
A good and abc
B good and gbc
C test ok and abc
D test ok and gbc
5运行下列程序, 会产生什么结果
public class X extends Thread implements Runable{
public void run(){
Systemoutprintln("this is run()");
}
public static void main(String args[])
{
Thread t=new Thread(new X());
tstart();
}
}
A 第一行会产生编译错误
B 第六行会产生编译错误
C 第六行会产生运行错误
D 程序会运行和启动
6要从文件" filedat"文件中读出第10个字节到变量C中,下列哪个方法适合
A FileInputStream in=new FileInputStream("filedat"); inskip(9); int c=inread();
B FileInputStream in=new FileInputStream("filedat"); inskip(10); int c=inread();
C FileInputStream in=new FileInputStream("filedat"); int c=inread();
D RandomAccessFile in=new RandomAccessFile("filedat"); inskip(9); int c=inreadByte();
7容器被重新设置大小后,哪种布局管理器的容器中的组件大小不随容器大小的变化而改变?
A CardLayout
B FlowLayout
C BorderLayout
D GridLayout
8给出下面代码:
public class Person{
static int arr[] = new int[10];
public static void main(String a[])
{
Systemoutprintln(arr[1]);
}
}
那个语句是正确的?
A 编译时将产生错误;
B 编译时正确,运行时将产生错误;
C 输出零;
D 输出空。
9哪个关键字可以对对象加互斥锁?
A transient
B synchronized
C serialize
D static
10下列哪些语句关于内存回收的说明是正确的
A 程序员必须创建一个线程来释放内存;
B 内存回收程序负责释放无用内存
C 内存回收程序允许程序员直接释放内存
D 内存回收程序可以在指定的时间释放内存对象
11下列代码哪几行会出错:
1) public void modify() {
2) int I, j, k;
3) I = 100;
4) while ( I > 0 ) {
5) j = I 2;
6) Systemoutprintln (" The value of j is " + j );
7) k = k + 1;
8) I--;
9) }
10) }
A line 4
B line 6
C line 7
D line 8
二、多项选择
1执行下列代码后,哪个结论是正确的 String[] s=new String[10];
A s[10] 为 "";
B s[9] 为 null;
C s[0] 为 未定义
D slength 为10
2下面的表达式哪个是正确的
A String s="你好";int i=3; s+=i;
B String s="你好";int i=3; if(i==s){ s+=i};
C String s="你好";int i=3; s=i+s;
D String s="你好";int i=3; s=i+;
E String s=null; int i=(s!=null)&&(slength>0)slength():0;
3选出合理的标识符
A _sys1_lll
B 2mail
C $change
D class
4哪个布局管理器使用的是组件的最佳尺寸( preferred size)
A FlowLayout
B BorderLayout
C GridLayout
D CardLayout
EGridBagLayout
5下列哪个方法可用于创建一个可运行的类
A public class X implements Runable{ public void run(){ } }
B public class X implements Thread{ public void run(){ } }
C public class X implements Thread{ public int run(){ } }
D public class X implements Runable{ protected void run(){ } }
Epublic class X implements Thread{ public void run(){ } }
6下面哪个方法可以在任何时候被任何线程调用
A notify()
B wait()
C notifyAll()
D sleep()
Eyield()
Fsynchronized(this)
7构造BufferedInputStream的合适参数是哪个
A BufferedInputStream
B BufferedOutputStream
C FileInputStream
D FileOuterStream
E File
8下列说法正确的是
A javalangClonable是类
B javalangRunnable是接口
C Double对象在javalang包中
D Double a=10是正确的java语句
9指出正确的表达式
A double a=10;
B Double a=new Double(10);
C byte a = 340;
D Byte a = 120;
10定义一个类名为"MyClassjava"的类,并且该类可被一个工程中的所有类访问,那么该类的正确声明应为:
A private class MyClass extends Object
B class MyClass extends Object
C public class MyClass
D public class MyClass extends Object
11指出下列哪个方法与方法public void add(int a){}为合理的重载方法。
A public int add(int a)
B public void add(long a)
C public void add(int a,int b)
D public void add(float a)
12如果下列的方法能够正常运行,在控制台上将显示什么?
public void example(){
try{
unsafe();
Systemoutprintln("Test1");
}
catch(SafeException e)
{Systemoutprintln("Test 2");}
finally{Systemoutprintln("Test 3");}
Systemoutprintln("Test 4");
}
A Test 1
B Test 2
C Test 3
D Test 4
13下列哪些情况可以终止当前线程的运行?
A 抛出一个例外时。
B 当该线程调用sleep()方法时。
C 当创建一个新线程时。
D 当一个优先级高的线程进入就绪状态时。
三、 填空题
1执行下列代码后的结果是什么 int x,a=2,b=3,c=4; x=++a+b+++c++;
2 包包含了Collection的接口和类的API
3main方法的声明格式包括
4下列程序中构造了一个SET并且调用其方法add(),输出结果是
public class A{
public int hashCode(){return 1;}
public Boolean equals(Object b){return true}
public static void main(String args[]){ Set set=new HashSet();
setadd(new A());
setadd(new A());
setadd(new A());
Systemoutprintln(setsize());
}
}
5下列程序的运行结果是
class A{
class Dog{
private String name;
private int age;
public int step;
Dog(String s,int a)
{
name=s;
age=a;
step=0;
}
public void run(Dog fast)
{
faststep++;
}
}
public static void main (String args[])
{
A a=new A();
Dog d=anew Dog("Tom",3);
dstep=25;
drun(d);
Systemoutprintln(dstep);
}
}
四、 编程题
1编写一个输出"Hello World!"的程序,用两种方式实现(Application、Applet)。
2打印输出10行杨晖三角形
3有下面一段Server段程序,目的是能够同时服务多个客户,客户的请求是一句话(一个 String)。如果这个请求的内容是字符串"plain"的话,服务器仅将"hello"字符串返回给用户。否则将用户的话追加到当前目录的文本文件 Memotxt中(路径为"Memotxt"),并向用户返回"OK"。注意Server并发的处理多用户,Memotxt被共享,要求不能出现数据不一致。Server的程序如下文件Serverjava:
public class Server{
public static void main(String args[]){
MemoController memoController = new MemoController();
try{
ServerSocket ss = new ServerSocket(1999);
while (true){
Socket s = ssaccept();
try{
UserThread t = new UserThread(s, memoController);
tstart();
}catch(Exception e){
eprintStackTrace();
}
}
}catch(Exception e){
eprintStackTrace();
}finally{
memoControllerclose();
}
}
}
类UserThread程序如下:
文件UserThreadjava:
public class UserThread extends Thread{
Socket s;
MemoController memo;
public UserThread (Socket s, MemoController memo){
thiss = s;
thismemo = memo;
}
public void run(){
try{
BufferedReader br = new BufferedReader(new InputStreamReader(sgetInputStream()));
PrintWriter pw = new PrintWriter(new OutputStreamWriter(sgetOutputStream()));
String req = brreadLine();
if (reqequals("plain")){
pwprintln("hello");
}else{
memoappend(req);
pwprintln("OK");
}
pwflush();
pwclose();
brclose();
sclose();
}catch(Exception e){
eprintStackTrace();
}
}
}
请根据题目的要求和现有的Serverjava, UserThreadjava的程序完成类MemoControllerjava的程序。
4用输入/输出写一个程序,让用户输入一些姓名和电话号码。每一个姓名和号码将加在文件里。用户通过点"Done"按钮来告诉系统整个列表已输入完毕。 如果用户输入完整个列表,程序将创建一个输出文件并显示或打印出来。 格式如:555-1212,Tom 123-456-7890,Peggy L 234-5678,Marc 234-5678,Ron 876-4321,Beth&Brian 331424570,Jean-Marc
四、 编程题答案
1
public class HelloWorld
{
public static void main(String args[])
{
Systemoutprintln("Hello,World!");
}
}
import javaawtGraphics;
import javaappletApplet;
public class HelloWorld extends Applet{
String s;
public void init(){
s="Hello World!";
}
public void paint(Graphics g){
gdrawString(s,25,25);
}
}
2
class yanghui
{
public static void main (String args[])
{
int i,j;
int yhlevel=10;
int yanghui[][];
Systemoutprintln("杨晖三角形:");
yanghui=new int[yhlevel][];
for(i=0;i<yanghuilength;i++)
yanghui[i]=new int[i+1];
yanghui[0][0]=1;
for (i=1; i<yanghuilength;i++)
{
yanghui[i][0]=1;
for(j=1;j<yanghui[i]length-1;j++)
yanghui[i][j]=yanghui[i-1][j-1]+yanghui[i-1][j];
yanghui[i][yanghui[i]length-1]=1;
}
for (i=0; i<yanghuilength;i++)
{
for(j=0;j<yanghui[i]length;j++)
Systemoutprint(yanghui[i][j]+" ");
Systemoutprintln();
}
}
}
输出结果是:
杨晖三角形:
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
1 6 15 20 15 6 1
1 7 21 35 35 21 7 1
1 8 28 56 70 56 28 8 1
1 9 36 84 126 126 84 36 9 1
3
import javaio;
public class MemoController{
FileOutputStream fos;
OutputStreamWriter osw;
BufferedWriter bw;
public MemoController(){
try{
fos=new FileOutputStream("memotxt",true);
osw=new OutputStreamWriter(fos);
bw=new BufferedWriter(osw);
}catch(FileNotFoundException e){};
}
public synchronized void append(String s){
try{
bwwrite(s,0,slength());
bwflush();
bwclose();
oswclose();
fosclose();
}catch(IOException e){}
}
public static void main(String args[]){
MemoController mmc=new MemoController();
mmcappend("I am xubin ");
}
}
4
import javaio;
class Phones
{
static FileOutputStream fos;
public static final int lineLength = 81;
public static void main(String args[]) throws IOException
{
byte[] phone = new byte[lineLength];
byte[] name = new byte[lineLength];
int I;
try
{
fos = new FileOutputStream("phonenumbers");
}
catch(FileNotFoundException e)
{ }
while (true)
{
Systemerrprintln("Enter a name (enter 'done' to quit)");
readLine(name);
if ("done"equalsIgnoreCase(new String(name,0,0,4)))
{
break;
}
Systemerrprintln("Enter the phone number");
readLine(phone);
for (int i=0;phone[i]!= 0;i++)
{
foswrite(phone[i]);
}
foswrite(',');
for (int i=0;name[i]!= 0;i++)
{
foswrite(name[i]);
}
foswrite('\n');
}
fosclose();
}
private static void readLine(byte line[]) throws IOException
{
int i=0,b=0;
while ((i<lineLength-1)&&((b=Systeminread())!='\n'))
{
line[i++] = (byte)b;
}
line[i]=(byte) 0;
}
}
一、 选择题答案
选择第1题
B
选择第2题
A
选择第3题
C
选择第4题
B
选择第5题
A
选择第6题
A
选择第7题
B
选择第8题
C
选择第9题
B
选择第10题
B
选择第11题
C
二、多项选择题答案
多项选择第1题
BD
多项选择第2题
AE
多项选择第3题
AC
多项选择第4题
AE
多项选择第5题
AE
多项选择第6题
DEF
多项选择第7题
AC
多项选择第8题
BC
多项选择第9题
AB
多项选择第10题
CD
多项选择第11题
CD
多项选择第12题
ACD
多项选择第13题
ABD
三、 填空题答案
填空第1题
x=10,a=3,b=4,c=5
填空第2题
javautil
填空第3题
(public )(static )(void)(main)(String args[])
填空第4题
1
填空第5题
26
以上就是关于java程序设计问题全部的内容,包括:java程序设计问题、用java设计程序。问题描述:公司总人数为100,计划能随机抽出每一个获奖者,一等奖10%,二等奖、(特急)《Java程序设计》理论题库—判断题(要准确答案)等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)