Search:

Type: Posts; User: C++kingKnowledge

Page 1 of 3 1 2 3

Search: Search took 0.21 seconds.

  1. Replies
    14
    Views
    1,966

    Re: Need help with error message!!

    its giving you an error because something is flawed in your when you call List<Donors> resultList = query.getResultList(); the compiler says it requires java.util.List<donorinfo.Donors> but it is...
  2. Replies
    20
    Views
    1,203

    Re: Reversing a String with no Buffer

    it's still a little buggy
    /*
    * Reverse a string but keep the words in their original positions
    */

    import javax.swing.*;

    class ReverseString {

    String inputStr;
  3. Replies
    20
    Views
    1,203

    Re: Reversing a String with no Buffer

    would i use an int as the temp variable even tho im swapping char elements??? it says the precision might be lost if i use char
  4. Replies
    20
    Views
    1,203

    Re: Reversing a String with no Buffer

    so i would add another method to do the swap or should i just go ahead and keep coding in the for loop???
  5. Replies
    20
    Views
    1,203

    Re: Reversing a String with no Buffer

    how would i swap char elements??? i have a code but where do i go from here /*
    * Reverse a string but keep the words in their original positions
    */

    import javax.swing.*;

    class ReverseString...
  6. Replies
    20
    Views
    1,203

    Re: Reversing a String with no Buffer

    call a method to reverse the current element in the array and then something like empty += revStr[x];
    thanks for that nugget i think that's what i needed to write this

    --- Update ---

    wow i...
  7. Replies
    20
    Views
    1,203

    Re: Reversing a String with no Buffer

    ok i read something about a char array but wasnt sure of its importance... so turn the input into a char array and then make a method that returns a string? how would i turn the char array into...
  8. Replies
    20
    Views
    1,203

    Re: Reversing a String with no Buffer

    ok i thought there would be a faster way using simple for loops and maybe an if statement.... so i should make a method to separate the string of words into let's say, a String array and then another...
  9. Replies
    20
    Views
    1,203

    Re: Reversing a String with no Buffer

    without using a StringBuffer object....
  10. Replies
    20
    Views
    1,203

    Re: Reversing a String with no Buffer

    didnt know it duplicated my connection got lost as soon as i hit post.... would i need a variable to specify the white space and another string variable for the new result??? also would it make a...
  11. Replies
    20
    Views
    1,203

    Reversing a String with no Buffer

    i was wondering if anybody can give me some help with drawing out the logic behind reversing a string with the following results: sample = "My name is jack"; the reverse should display "yM eman si...
  12. Reversing a String with no Buffer

    i was wondering if anybody can give me some help with drawing out the logi behind reversing a string with the following results: sample = "My name is jack"; the reverse should display "yM eman si...
  13. Replies
    3
    Views
    891

    Re: Help with linked list problem

    what does this.data=data mean in your constructor? you only have one data member, public int data, defined so your constructor isn't assigning anything... your boolean method in the LinkList class i...
  14. [SOLVED] Re: Using scanner and if/else statement to draw one of two graphics.

    you're passing a Graphics object as a parameter in your definition but you didn't follow the rules of that syntax in your main method... its says to you need to delete something in your face methods...
  15. Re: Instance Variable does't work in extended class?

    i'm not too sure if you can increment cur like the way you did in your super class... that kind of syntax works in the c/c++ languages
  16. Re: Exception in thread "main" java.lang.NullPointerException - And everything else...

    from what i see you're getting a null exception because ur trying to load a set of pokemon info from a text file that hasn't been initialized... instead of a buffer reader try using an input stream...
  17. Re: How to create a parametrized constructor ,with parameters accepting from a accept() function?

    look at the constructor you created and then go to the main method and look at the object you instantiated.... does the new object you created match the definition you made for a Student object???
  18. Replies
    9
    Views
    928

    [SOLVED] Re: While loop question

    no prob i'm just like u trying to gain knowledge and help others.... happy coding
  19. Re: 2nd time not executed while in my program

    u just posted this same thread.... for conversations involving the same topic post on the same thread don't create a new one
  20. Replies
    9
    Views
    928

    [SOLVED] Re: While loop question

    make it equal 0 after the while loop
  21. Replies
    2
    Views
    883

    Re: While for Databse Proplem

    what's the problem???
  22. Replies
    9
    Views
    928

    [SOLVED] Re: While loop question

    ok i get it you want the number to generate a certain amount of times in the case that the number isn't one and keep count of other variables while that condition is true or not... just reset the...
  23. Replies
    9
    Views
    928

    [SOLVED] Re: While loop question

    i think i get what ur trying to do... just make the randNum1 generate without the while loop and see if that's what u had in mind... the use of that while loop makes possible for complications and...
  24. Replies
    7
    Views
    1,484

    Re: Help! Help! Help!

    to clean the code up you can make your roundTwo variable a showConfirmDialog and change your while statement afterwards to an if statement that runs the game again should the user select yes......
  25. Replies
    9
    Views
    928

    [SOLVED] Re: While loop question

    u have in your while loop randNum1 != 1 but you also have if(randNum1 == 1) inside the loop so if that case is true then after that loop randNum1 will be equal to 1 so your while loop will never run...
Results 1 to 25 of 72
Page 1 of 3 1 2 3