Type: Posts; User: dlorde

Page 1 of 20 1 2 3 4

Search: Search took 0.10 seconds.

  1. Re: Class Temperature, not sure about constructor/methods

    'get' methods don't usually take an argument unless it's necessary to calculate or select the value to return. They certainly shouldn't take an argument with the same name as a class member variable...
  2. Replies

    Re: What String methods should I use for this?

    You need to loop through the string, and each time round the loop, find the character at the position indicated by your loop counter, and if that character is an 'a', increment another counter.
  3. Replies

    Re: Noob question: Why .class?

    Broadly, it is a named block of code qualified with the keyword 'class'.

    It is a named block of code qualified with the keyword 'class'. There's no need for justification, and no particular...
  4. Replies

    Re: Saving and Loading

    It's hard to say without knowing how you intend to manage the questions and answers data inside your program, but if you have a particular list of questions and maintain a list of answers for the...
  5. Re: Java: Links, images, font and divisions with HTML / CSS

    You think? How many 'languages of the web' world are you familiar with?

    Methinks this character is posting just to advertise the coupon site in his signature...
  6. Thread: HELP!!

    by dlorde

    Re: HELP!!

    Looks like you're trying to declare a constructor, but the compiler thinks it should be a method - there's probably some punctuation or syntax problem involved... If you post the relevant code, it...
  7. Replies

    Re: Saving and Loading

    What do you mean by "load to the question the user was on"?

    Just imagine we are strangers on an internet forum who have no idea how your application is going to work, and explain clearly what you...
  8. Re: Trying to figure out how to make a screen saver.

    Before you use a class, you should already know why you want to use it and how to use it to do what you want. If you know why a JFrame fits your requirement, and you know how to use it to achieve...
  9. Replies

    Re: Ruby like string interpolation in Java

    I suspect the MessageFormat class is as close as you're likely to get.
  10. Replies

    Re: association help !!

    Hard to tell, since you haven't posted it all.

    Where is the code that sets up the user input ?
  11. Replies

    Re: stack project-runtime error

    For what it's worth, the posted code finds and opens a file called '' if such a file exists in the current directory. What it does then is anybody's guess. From the look of it, I suspect the...
  12. Replies

    Re: number formatter in java

    Are you using NumberFormatter? Are you using the correct NumberFormat for the locale?

    If you post the relevant code, perhaps we might be able to make some helpful suggestions.
  13. Re: Trying to figure out how to make a screen saver.

    If you read his code, I think you'll find he knows about System.exit(0) - and uses it. If you read his posts, I think you'll find that has nothing to do with his problem.
  14. [SOLVED] Re: What do I need to do to use a bean in Netbeans 7 apart from defining it?

    You haven't posted your bean code, so does your bean follow the Javabeans Specification? I'd also recommend following the Java Naming Conventions - class names start with uppercase letters, and I'd...
  15. Replies

    Re: whats wrong with my code.

    If you're asking how to add an item to an ArrayList, see the ArrayList API docs.

    If your ArrayList is going to hold Items, it would be sensible to call it 'items'. If you call it 'Item', how will...
  16. Re: Issues with selecting a drawn circle on graphics

    Why can you not just draw a line between the centre-points of the two circles?
  17. [SOLVED] Re: Is there any way I can access heap memory faster?

    There's a reason all the programming gurus feel so strongly about optimization... ;)

    Premature optimization is the root of all evil in programming - C.A.R. Hoare

    Rules of Optimization:
  18. Replies

    Re: Reading In Then Writing Out Massive Files

    No, it's an OutputStream, so it doesn't read data in. It basically relies on the OS to sort out the details.
  19. [SOLVED] Re: How to compare a parameter value to a string literal inside EL?

    I believe (it's a long time since I did any of this stuff) you can also use double-quotes (i.e. nested double quotes), and the system will figure it out, but it makes the code harder to read.
  20. Re: Trying to figure out how to make a screen saver.

    The code you posted does what it says on the tin here - it exits when a key is pressed (it never gets to the key typed handler, because it exits before that).

    How can you tell it exits without a...
  21. Replies

    [SOLVED] Re: jTable event help

    It's really hard to tell from the scraps you've given us, but it sounds like you want to change the font colour of the table rows depending on the row contents. If so, then your custom table cell...
  22. Replies

    Re: Creating a slang translator

    @Diplo - I think the idea is that we help the OP find a solution himself, rather than spoon-feeding code.
  23. Re: Trying to figure out how to make a screen saver.

    Seems to me that Full-screen Exclusive Mode would be ideally suited to screensavers.
  24. [SOLVED] Re: How to compare a parameter value to a string literal inside EL?

    Have you tried enclosing 'yes' in single quotes?
  25. Replies

    Re: How to remove comma before an String?

    The OP probably wants to find the last index of the comma... ;)
Results 1 to 25 of 476
Page 1 of 20 1 2 3 4