Search:

Type: Posts; User: KevinWorkman

Page 1 of 20 1 2 3 4

Search: Search took 0.46 seconds.

  1. Re: Help with formatting and creating a user defined class.

    This is the first result for googling "java format number" and contains exactly what you're looking for: Formatting Numeric Print Output (The Java™ Tutorials > Learning the Java Language > Numbers...
  2. Re: How to set (minimum) panel size for panel with a Graphics2D object only?

    The Component class has a setMinimumSize() function.
  3. Replies
    9
    Views
    85

    Re: List with ArrayList

    What exactly do you think FlowLayout.CENTER is doing?

    Recommended reading: http://docs.oracle.com/javase/tutorial/uiswing/layout/grid.html
  4. Replies
    5
    Views
    72

    Re: How to correct this code?

    Right, you have to debug this code. That's what you're asking us to do, and it's something you have to get into the habit of doing.

    You do that by tracing through the code, either with a piece of...
  5. Replies
    5
    Views
    72

    Re: How to correct this code?

    What happened when you stepped through this code with a debugger, or at least added some print statements? When does the execution of this code differ from what you expect it to do?
  6. Replies
    5
    Views
    72

    Re: How to correct this code?

    What does this program do? What do you expect it to do? What happened when you stepped through it line-by-line to figure out when its execution differs from your expectation?
  7. Re: I was just about to start and it has problems?

    How are you testing a Scanner?

    All this code does is create a Scanner. You don't actually tell the Scanner to do anything, and you don't print anything to the console, which is why you don't see...
  8. Re: I was just about to start and it has problems?

    What would you expect it to do?
  9. Replies
    9
    Views
    85

    Re: List with ArrayList

    Your real code might be doing more than this, but note that the code you posted doesn't really need the ArrayList at all.
  10. Replies
    9
    Views
    85

    Re: List with ArrayList

    Ah, I see. you've imported java.awt.List, which is an AWT component. It is indeed not generic, hence the error.

    You're looking for java.util.List, which is an interface. It *is* generic.
    ...
  11. Replies
    9
    Views
    85

    Re: List with ArrayList

    This code doesn't make a lot of sense. Your buttons variable is a List, so why are you using the array index operator [i] on it?

    Can you show us an MCVE (note: NOT your whole project!) that...
  12. Re: I don't quite understand the last bit of this code. Could someone comment it out for me?

    Take it one line at a time. Get out a piece of paper and a pencil. What is the value of every variable as the program executes? Keep track of it on the piece of paper, and update it as you step...
  13. Re: I don't quite understand the last bit of this code. Could someone comment it out for me?

    What do you think happens?

    What happened when you stepped through this with a debugger? Or at least added some print statements? Or just walked through it with a piece of paper and a pencil?
  14. Re: how to develop Front end like OLX, quikr ?

    What has your googling told you?
  15. Re: Omitting local large variable to save memory

    What happened when you tried this and did some profiling?
  16. Re: write java program using table that stores celsius and farenheit values that are equal to one another using a loop. use C 0-20

    What error do you get? On what line?
  17. Re: [help] how to put the output in TextArea

    What part of it don't you understand?
  18. Re: [help] how to put the output in TextArea

    You should learn the correct usage of the static keyword.

    This is the first result for googling "java static keyword": Understanding Class Members (The Java™ Tutorials > Learning the Java Language...
  19. Re: [help] how to put the output in TextArea

    I don't know how else to ask the question. Your method is static. Why? What reason do you have for making this static? Your whole problem is caused by a mismatch between a static method and...
  20. Re: [help] how to put the output in TextArea

    Why is this method static?

    What happened when you googled the error?
  21. Re: [help] how to put the output in TextArea

    Why is this method static?

    What happened when you googled the error?
  22. Re: how to develop Front end like OLX, quikr ?

    Do you want to build a website or an application?

    What has your googling told you?
  23. Re: java game server connection problem

    Did you have a question?

    Where did you decompile this code from?
  24. Re: Java.lang.NumberFormatException thrown

    Long values can't contain a decimal point.
  25. Re: i need someone to please help me with this java assignment, i am taking it this semester

    We aren't going to do your homework for you.

    Recommended reading:
    How To Ask Questions The Smart Way
    Stack Overflow question checklist - Meta Stack Overflow
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4