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...
Type: Posts; User: jcloud
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...
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 ...
@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
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...
your main method shouldn`t in your Internal class
and you should new Robert_Bachman_JFrame in your main method
@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...
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...
@copeg
maybe you are right .whatever I will abide by the provisions of this community
public class Rand1 extends JFrame implements ActionListener
{
Random rand = new Random();
private int numberToGuess = rand.nextInt(100);
private int numTries = 0;
private int guess;...
Why do you assign Temp to Input, leading to a cycle of only 1
在你的程序里我只看到一个构造方法public Student(String studentFirstName, String studentLastName, String studentAddress,String studentPhoneNumber, int studentCredits)
你再new对象的时候 Student Tuition = new...
String不是基本数据类型,在初始化的时候,指向的null,当你调用null的任何方法的时候,就会报空指针一场
所以,private String hotelType="";
-----------------------------------------------------------------------------------------------------
...