摘要:
代码: package deal; public class Calculation { public static int deal(int a,String b,int c) { int x = 0; switch(b) { case "+":x=a+c;break; case "-":x=a- 阅读全文
摘要:
1.动手动脑一 以下代码为何无法通过编译?哪儿出错了? public class Test { public static void main(String[] args) { Foo obj1=new Foo(); } class Foo{ int value; public Foo(int in 阅读全文
摘要:
动手动脑一:纯随机数发生器 源代码: package Test; import java.util.Random; public class Test { public static void main(String[] args) { Random r = new Random(1000); in 阅读全文