Search:

Type: Posts; User: jim829

Page 1 of 12 1 2 3 4

Search: Search took 0.30 seconds.

  1. Replies
    3
    Views
    192

    Re: Not getting desired result

    First, don't spoon feed solutions to OPs. Second, perhaps the OP wanted to figure out how to do it without using a reverse().

    Regards,
    Jim
  2. Thread: Need help

    by jim829
    Replies
    3
    Views
    156

    Re: Need help

    This is basic Java so you should check out the tutorials in my signature. The questions you raise are covered in there.

    Regards,
    Jim
  3. Re: Understanding the mechanics of swapping variables for the quicksort algorithm

    Your highlighted code is difficult to read.

    Regards,
    Jim
  4. Re: Android studio | how to make a button text unchangable after changing it once

    I may have misunderstood the question. I thought the OP didn't want to be able to press the button again, once it has been changed.

    Regards,
    Jim
  5. Re: Android studio | how to make a button text unchangable after changing it once

    The easiest way would be to disable the button. It will then change the textual appearance to indicate it has been disabled.


    JButton b = myButton("X");
    b.setEnabled(false);

    Regards,
    Jim
  6. Re: JFRAME PARAMETERS NOT GETTING used in DISPLAY

    Extending JFrame is not a good practice. Just make an instance of it and use that. If you're going to paint, then extend JPanel and override paintComponent(Graphics g). And add the JPanel to your...
  7. Replies
    2
    Views
    127

    Re: Super new at Java

    Without the parentheses, the evaluation order is strictly left to right. Once you get a valid first user name, the rest is not evaluated because if the first part is true, the rest is irrelevant so...
  8. Re: Playlist Shuffle with Collections.shuffle(......)

    Try putting some print statements before and after the shuffle method to check and see if it is working.

    Regards,
    Jim
  9. Replies
    3
    Views
    139

    Re: isDecreasing assignment help. URGENT

    Veretimothy,

    Please read this: The Problem With Spoonfeeding"

    Regards,
    Jim
  10. Re: Import CSV data into 2d array then compare each row

    What exactly do the rows look like? Can you provide an example?

    Regards,
    Jim
  11. Replies
    9
    Views
    185

    Re: Google ChromeDriver

    Glad we could help.

    Regards,
    Jim
  12. Replies
    9
    Views
    185

    Re: Google ChromeDriver

    Your post has nothing to do with Java. Please contact the distributor of the software and seek assistance from them.

    Regards,
    Jim
  13. Re: Import CSV data into 2d array then compare each row

    Why not read each row as a String and compare the strings? Otherwise, what happens if you have the following four values? And why are you splitting on a semi-colon and not a comma?

    1, 2, "three,...
  14. Replies
    1
    Views
    493

    Re: How to catch thrown exception

    In what way didn't it work? Did you get an error message?

    Regards,
    Jim
  15. Replies
    9
    Views
    162

    [SOLVED] Re: Unable to use Same scanner twice

    Please don't do this:


    catch (InputMismatchException e) { //this is the error we are catching
    }

    As you are not catching anything. At a minimum, do this:


    catch (InputMismatchException e)...
  16. Replies
    3
    Views
    192

    Re: Not getting desired result

    I recommend you put in a print statement in your loop to print out the values of n, rev, and a to see what is happening.

    Regards,
    Jim
  17. Replies
    3
    Views
    170

    Re: How do I write these two pyramids in Java?

    Please read this: http://www.javaprogrammingforums.com/cafe/9544-problem-spoon-feeding.html

    Regards,
    Jim
  18. Re: Actual and formal argument lists differ in length Error

    I am unfamiliar with your classes but some of this looks strange.


    public void phoneCall()
    {
    Gadget mobPhone = Devices.get(getDisplayNum());
    if (getDisplayNum() != -1 &&...
  19. Re: Actual and formal argument lists differ in length Error

    It tells you right there. The phoneCall method does not expect any arguments. But you are calling it like this.


    phone.phoneCall(getDisplayNum(), getDuration());

    It should be called like...
  20. Re: I keep getting errors within my code and i dont know why

    Please edit your post and place the formatted code between code tags (See BBCodes below for more info). You can do this by going to the advanced editor, highlighting your code and clicking the #...
  21. Re: ClickListener cannot be resolved to a type

    You are trying to instantiate the listener before it's defined. Did you really mean to put this method inside the constructor? You can fix this one of two ways.

    1. Move the inner class...
  22. Replies
    3
    Views
    661

    Re: Need a help with the easy app

    Show me what you have done.

    Regards,
    Jim
  23. Thread: nested loop

    by jim829
    Replies
    2
    Views
    108

    Re: nested loop

    And your other question that was answered?

    Regards,
    Jim
  24. Replies
    1
    Views
    210

    Re: How do I make a Jbutton invoke a method

    This was answered yesterday. Please don't double post on this forum.

    Regards,
    Jim
  25. Replies
    3
    Views
    101

    Re: Need help solving this class assignment.

    Please place code between code tags (see BBcodes below for more info). And you didn't explain what problems you were having and whether they were, compiler problems, exceptions being thrown, or...
Results 1 to 25 of 291
Page 1 of 12 1 2 3 4