我想真正做点事,想学点什么!于是选择了JAVA,完全自学。我做事很疯狂的,为了学好这个,已经有三个月不玩任何大小游戏了,每天2,3点休息。平时都是在自修室里看书,我敢说,班里没人像我这样用功的,但这样进步仍然很慢,我想找个师傅或者说朋友,能常在线,可以交流,愿意教我的!Email [email protected] 

解决方案 »

  1.   

    我顶,我也要找师傅。我发现学习java这东东,必须得有个师傅带带才行!
      

  2.   

    别光看书
    多敲敲代码
    网上JAVA的视频很多~~
      

  3.   

    当然,我不是光学JAVA的,还得学我自己专业的了。
    学JAVA才一个星期吧!
    先问一个/*
    **比较两个输入的数值大小
    */import java.io.*;public class CompareTwo {
    public static void main(String[] args) throw IOException {
    int a;
    int b;
    String state;

    BufferedReader stdin=new BufferedReader(new InputStreamReader(System.in));
    System.out.println("Enter the first number :");
    a=Integer.parseInt(stdin.readLine());
    System.out.println("Enter the second number:");
    b=Integer.parseInt(stdin.readLine());

    if (a>b) {
    state="larger than";
    System.out.println("a is"+state+"b");
    }
    else if (a<b) {
    state="smaller than";
    System.out.println("a is"+state+"b");
    }
    else {
    state="equal to";
    System.out.println("a is"+state+"b");
    }
    }
    }
      

  4.   

    我用的是Jcreator   和  ep显示以下这句里有个错误,在args) throw中间少了个“;”
    public static void main(String[] args) throw IOException { 
      

  5.   

    我是学计算机的,只是老师并不教这个,她也不会JAVA
      

  6.   

    编译了下  throws if语句写的不对
    import java.io.*; public class CompareTwo { 
    public static void main(String[] args) throws IOException { 
    int a; 
    int b; 
    String state;  BufferedReader stdin=new BufferedReader(new InputStreamReader(System.in)); 
    System.out.println("Enter the first number a:"); 
    a=Integer.parseInt(stdin.readLine()); 
    System.out.println("Enter the second number b:"); 
    b=Integer.parseInt(stdin.readLine()); 

    System.out.print("a= "+a);
    System.out.print(" ");
    System.out.println("b= "+b); if (a>b) { 
    state="larger than"; 
    System.out.println("a is "+state+" b"); 
    } else if (a <b) { 
    state="smaller than"; 
    System.out.println("a is "+state+" b"); 
    } else { 
    state="equal to"; 
    System.out.println("a is "+state+" b"); 



      

  7.   

    那两句是我加上去看看a,b有没有正确传值进去加不加都行啊,看错了if语句没错。 throws子句声明可能出现的异常,throw抛出异常
    我也是新手。。