Search:

Type: Posts; User: Farmer

Search: Search took 0.44 seconds.

  1. Re: Problems with if else if statement operation

    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,...
  2. Problems with if else if statement operation

    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...
  3. Replies
    0
    Views
    427

    Accesing Old Projects In NEtBeans IDE

    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...
  4. Replies
    2
    Views
    6,056

    Converting Java Code to work with Android

    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...
  5. Java Project / Library to evaluate poker hands

    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...
  6. Re: Trouble adding exceptions to fixed queue class

    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...
  7. Trouble adding exceptions to fixed queue class

    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...
  8. Re: Simple package problem, package does not exist error

    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...
  9. Simple package problem, package does not exist error

    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;
    ...
  10. Re: Problem with subclass and superclass methods

    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...
  11. Re: Problem with subclass and superclass methods

    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...
  12. Problem with subclass and superclass methods

    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...
  13. Replies
    5
    Views
    2,842

    Re: Constructing Strings

    Thank you everyone for the information.
  14. Replies
    5
    Views
    2,842

    Constructing Strings

    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...
  15. Re: Out of bounds error, 2d irregular array of integers

    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...
  16. Out of bounds error, 2d irregular array of integers

    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...
  17. Replies
    2
    Views
    2,611

    Re: Simple Nested Do/While Loop

    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.
  18. Replies
    2
    Views
    2,611

    Simple Nested Do/While Loop

    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')...
Results 1 to 18 of 18