Search:

Type: Posts; User: jcloud

Search: Search took 0.10 seconds.

  1. Replies
    3
    Views
    1,948

    Re: Recursion Guidance

    you said " I'm pretty sure that it should be within my "getNumHandshakes()" method but I can't seem to get correct results when I do it that way"
    I mean when your handshankes variable in your...
  2. Replies
    3
    Views
    1,948

    Re: Recursion Guidance

    1, I try to understsnd your question 1 , but I don`t understand what you say "implemented it" means

    2, the handshakes variable should as an instance variable , beacuse you Recursive your method ...
  3. Replies
    3
    Views
    1,085

    Re: My GUI is EWWIE please help!

    @Mr.777 I want to give him a hit , but I don`t know how to say .
    by the way,My English is very poor
  4. Re: Reading a File, using Scanner, then assigning all values in the file to an array

    first, you use fileReader.hasNextLine() to determine whether there are data
    but fileReader.hasNextLine() always true;

    second, in first while() you have not through fileReader.next to extract...
  5. Replies
    3
    Views
    1,085

    Re: My GUI is EWWIE please help!

    your main method shouldn`t in your Internal class
    and you should new Robert_Bachman_JFrame in your main method
  6. Replies
    6
    Views
    1,697

    Re: Not sure where the error is coming from

    @WhiteSoup12

    In fact, the program needs get rid of "i=types.length;"
    A few days ago, I was told that I should not tell others answer directly , So I gave him ideas ,let him to solve by himself...
  7. Replies
    6
    Views
    1,697

    Re: Not sure where the error is coming from

    when I run your program , I got a err that " Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 10
    at test11_23.FlowerCounter.main(FlowerCounter.java:35)"
    FlowerCounter.java:35...
  8. Replies
    7
    Views
    1,177

    [SOLVED] Re: Troubles with My code

    @copeg

    maybe you are right .whatever I will abide by the provisions of this community
  9. Replies
    7
    Views
    1,177

    [SOLVED] Re: Troubles with My code

    public class Rand1 extends JFrame implements ActionListener
    {

    Random rand = new Random();
    private int numberToGuess = rand.nextInt(100);
    private int numTries = 0;
    private int guess;...
  10. Replies
    8
    Views
    2,063

    Re: Please Help Java Stack

    Why do you assign Temp to Input, leading to a cycle of only 1
  11. Thread: Java error

    by jcloud
    Replies
    3
    Views
    1,140

    Re: Java error

    在你的程序里我只看到一个构造方法public Student(String studentFirstName, String studentLastName, String studentAddress,String studentPhoneNumber, int studentCredits)
    你再new对象的时候 Student Tuition = new...
  12. Replies
    3
    Views
    2,559

    Re: Null Pointer Exception error

    String不是基本数据类型,在初始化的时候,指向的null,当你调用null的任何方法的时候,就会报空指针一场

    所以,private String hotelType="";
    -----------------------------------------------------------------------------------------------------
    ...
Results 1 to 12 of 12