That clears it. I thought that the use of the indexOf("JAVA")!=-1 is to scan every 4- letter word from the start and when it does find the word "JAVA", there will be some values that is not equal to...
Type: Posts; User: xdrechsler
That clears it. I thought that the use of the indexOf("JAVA")!=-1 is to scan every 4- letter word from the start and when it does find the word "JAVA", there will be some values that is not equal to...
Its okay, I'm after the logic. I'll just ask my professor about it.
Can I ask some questions?
temp+=value; -> this is to store the value of the 4 strings to be formed right?
I don't get the -1...
I'm not familiar with Scanner but I think it is the same as BufferedReader?
@Norm
It is a statement.
Hmm, I'll try to fill it.
Enter a letter: J
Enter a letter: A
Enter a letter: C
First, I enter "J" followed by "A" which is to formed JAVA but I enter a "C" on...
@aussiemcgr
In our situation, it will only stop if the word JAVA is formed.
indexOf(String value) - I don't know this function yet because I think it is on more complex programming and I think...
Hello, I am new in this forum, hope you guys can help me with my problem.
Our professor gave us a take home quiz and I don't know what to do anymore after several attempts in doing the program. I...