Search:

Type: Posts; User: JosAH

Page 1 of 20 1 2 3 4

Search: Search took 0.09 seconds.

  1. Replies
    19
    Views
    210

    Re: Help with patterns using nested loops

    That surprises me; did you expect any regularity in the pattern given a few previous samples? That'd be incomplete induction and never expect that to be always true ... ;-)

    kind regards,

    Jox...
  2. Replies
    5
    Views
    124

    Re: math problem by date

    Did you have a look at the Calendar class API?

    kind regards,

    Jos
  3. Replies
    13
    Views
    196

    Re: Array Test questions

    Did you fill in the dots as I suggested? All you have to do (somewhere else) is catch the Exceptions thrown if the array happened to be null or having zero length ...

    kind regards,

    Jos
  4. Replies
    3
    Views
    164

    Re: Java Objects and Classes

    For one thing, I never see something similar to this in your main( ... ) method:



    LinearEquation le= new LinearEquation(a, b, c, d, e, f);
    if (le.isSolvable())
    ...


    kind regards,
  5. Replies
    3
    Views
    164

    Re: Java Objects and Classes

    You are not creating a LinearEquation object anywhere in your code; if you had, you would be able to ask the object if it were solvable or not and print an appropiate message.

    kind regards,

    Jos
  6. Replies
    13
    Views
    196

    Re: Array Test questions

    You left out my first line of code ...

    kind regards,

    Jos
  7. Replies
    13
    Views
    196

    Re: Array Test questions

    Split the test in two parts:



    if (array == null) throw new ...;
    if (array.length == 0) throw new ...;


    You fill in the dots.
  8. Replies
    15
    Views
    217

    Re: New to Java and this forum need some help.

    Apply Occam's razor: you don't care about how many wheels the thing has, nor about sensors; your robot is able to move in a two dimensional array in the directions north, east, south or west; neither...
  9. Re: How do I utilise Google's "Directions API" in my Java Swing program?

    Have a look at the URLConnection class.

    kind regards,

    Jos
  10. Replies
    15
    Views
    217

    Re: New to Java and this forum need some help.

    Of course; it's the instructor's fault again; maybe, just maybe, she wants you to be able to do your work on your own, without being taken by the hand to be guided to the solution ...

    Jos
  11. Replies
    4
    Views
    134

    Re: How to view an applet

    ... or contact the author of the code if you need details.

    Jos
  12. Replies
    12
    Views
    154

    Re: Convert a piece of C++ to Java

    Yes, on a daily basis.

    kind regards,

    Jos
  13. Replies
    12
    Views
    154

    Re: Convert a piece of C++ to Java

    Strange, I could and would've sworn I saw a right square bracket when I wanted to edit my reply; and I wasn't even boozing yet ;-) Thanks for fixing it.

    kind regards,

    Jos
  14. Replies
    12
    Views
    154

    Re: Convert a piece of C++ to Java

    Hm, strange: the forum software skips the right square bracket from the '[code]' tag (it is there) ... stupid forum software ...

    Jos
  15. Replies
    12
    Views
    154

    Re: Convert a piece of C++ to Java

    Simply change this structure:



    st: if ( ... ) {
    ...
    goto st;
    }
  16. Replies
    5
    Views
    157

    Re: Abstract Class return

    I feel a naughty orgy description coming up ...

    kindest regards,

    Jos
  17. Replies
    5
    Views
    157

    Re: Abstract Class return

    Why don't you let the (concrete subclass of) Animal reproduce itself? It should test the otherAnimal and reproduce if it is a compatible animal. The 'instanceof' operator can come in handy here, e.g....
  18. Re: action event doesn't seem to activate actionListener

    You can't compare Strings for equality whith the == operator (you can't compary any two objects like that); use the equals( ... ) method instead.

    kind regards,

    Jo
  19. Replies
    13
    Views
    181

    Re: using color for character

    :-D

    kind regards,

    Jos
  20. Replies
    13
    Views
    181

    Re: using color for character

    Consider it done:6809
  21. Replies
    24
    Views
    370

    Re: Using JtextField as gogole toolbar

    As I wrote above: a JTextField isn't a String, it has a String and you can get it with its getText() method (read the API docs for that class); also, you're not using a List<String>, you're using a...
  22. Replies
    24
    Views
    370

    Re: Using JtextField as gogole toolbar

    A JTextField isn't an array of Strings, so they can't be compared for equality; a single String also isn't an array of Strings, so they can't be compared either. Pleas explain in words what you have...
  23. Replies
    24
    Views
    370

    Re: Using JtextField as gogole toolbar

    <sticks finger up in the air>
    Erm, I do ...
    </sticks finger up in the air>

    But my old mum already told everyone that I was a strange kid ...

    kind regards,

    Jos
  24. Re: Want to add some thing to my game need help.

    Please don't spoonfeed.

    kindest regards,

    Jos
  25. Thread: Constructors

    by JosAH
    Replies
    7
    Views
    220

    Re: Constructors

    Be extremely careful with calling methods defined in a sub class from the constructor of the super class, i.e. the sub class object isn't properly defined yet when the constructor of the super class...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4