I see now that I can't use the if else statements to do what I want. I want to choose two cards, if card A is equal to card B, pick another card B, if card A is equal to card B, pick another card B,...
Type: Posts; User: Farmer
I see now that I can't use the if else statements to do what I want. I want to choose two cards, if card A is equal to card B, pick another card B, if card A is equal to card B, pick another card B,...
I am a beginner trying to create a program that selects two random cards from a deck. A pocket pair In doing this I am trying to test the if else if statements in the program. I have used if else if...
I am working with the NetBeans IDE. A while ago I cleaned up the directory that holds my projects that show up in the project window of the IDE. I did this so it wouldn't take the NetBeans IDE so...
Hello,
I am a beginner with Java in that I have worked through examples from a book. I would like to start programming android applications (simple ones). I know Android Apps use java (I can see...
I have some experience with Java but I would still consider myself a beginner. I recently came across this link: http://github.com/phstc/javapokertexasholdem
The link contains folder and files to a...
I have read all of the comments and plan to get to them, but well start with Norm's. I changed the QueueFullException to QueueEmptyException in implemented ICharQ class. This is a side note but, I...
Hello,
I am working through examples from a book from the library. From the original errors I saw that there were some overridden methods namely, put() and get(). I overlooked this originally...
Hello all,
I solved the problem using a combination of things you all mentioned. First, I changed the classpath variable in the command prompt using:
C:\>set CLASSPATH=.;C:\java
Then I...
Hello,
I am self-teaching java to myself with a library book. The book I'm working through suggests that I create a package called BookPack, it defines the following class:
package BookPack;
...
Junky,
When I compile your code, I get the following output:
Apple
Cherry
I get apple and cherry for these reasons starting at main():
Foo f = new Foo();
A new object of type Foo is...
Junky,
Thanks for your response, I have been working through this book from the public library on Java. Right now I am working with overriding methods and inheritance. The code I included before...
Hello,
I am having trouble with the code posted below. The code has some pre-compile errors, which I will list here:
//cannot find symbol
//symbol: method...
Thank you everyone for the information.
Hello,
This probably seems simple, well I'm sure all of mine seem simple, so here it goes. I am having trouble constructing strings. str1, str3, and str4 give pre-compile errors and show up yellow...
Thank you for your help Norm. Everything works well now, however, I do have another question related to this site. I am unable to post my messages as solved. When I initially post my problems, I can...
Hello,
The code initializes a irregular array of integers, prints the length of each row in the array. Then I attempted to print the table[i][j], but I run into an out of bounds exception. In the...
dlorde,
Thanks for you input. I have seen the Scanner class used but have not tried it yet. I am just working my way through text book examples. Again your feedback was helpful, thank you.
I was wondering if you can help me out with this code, I am learning on my own mostly from a book.
The code runs fine but in the 2nd do/while statement I am curious about the condition: (ch=='\n')...