Search:

Type: Posts; User: dlorde

Page 1 of 19 1 2 3 4

Search: Search took 0.29 seconds.

  1. Replies
    6
    Views
    444

    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.
  2. Replies
    10
    Views
    659

    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...
  3. Replies
    12
    Views
    586

    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...
  4. 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...
  5. Thread: HELP!!

    by dlorde
    Replies
    5
    Views
    288

    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...
  6. Replies
    12
    Views
    586

    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...
  7. 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...
  8. Replies
    3
    Views
    2,378

    Re: Ruby like string interpolation in Java

    I suspect the MessageFormat class is as close as you're likely to get.
  9. Replies
    2
    Views
    323

    Re: association help !!

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


    Where is the code that sets up the user input ?
  10. Replies
    16
    Views
    731

    Re: stack project-runtime error

    For what it's worth, the posted code finds and opens a file called 'Test.java' 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...
  11. Replies
    2
    Views
    367

    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.
  12. 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.
  13. [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...
  14. Replies
    3
    Views
    550

    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...
  15. 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?
  16. [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:
    Rule...
  17. Replies
    3
    Views
    398

    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.
  18. [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.
  19. 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...
  20. Replies
    12
    Views
    1,385

    [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...
  21. Replies
    14
    Views
    687

    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.
  22. 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.
  23. [SOLVED] Re: How to compare a parameter value to a string literal inside EL?

    Have you tried enclosing 'yes' in single quotes?
  24. Replies
    4
    Views
    1,031

    Re: How to remove comma before an String?

    The OP probably wants to find the last index of the comma... ;)
  25. Replies
    3
    Views
    398

    Re: Reading In Then Writing Out Massive Files

    You can open a FileOutputStream for appending by using the constructor that takes an 'append' indicator.
Results 1 to 25 of 475
Page 1 of 19 1 2 3 4