Search:

Type: Posts; User: JosAH

Page 1 of 20 1 2 3 4

Search: Search took 0.19 seconds.

  1. Replies
    15
    Views
    181

    Re: JoptionPane Cancel and 'X' button confusion

    I don't understand all the trouble here: when you press 'ok', the dialog returns the string entered; when you press 'cancel' or the 'X' button, the dialog returns null. You have to test that and act...
  2. Re: Arithmetic expression that will display doubles to only one decimal place?

    No, our society that propagates "how not to sit on hedgehogs" have recently included cacti in our field of interest.

    kindest regards,

    Jos (<--- never sits on hedgehogs nor cacti (nor jellyfish...
  3. Thread: Algorithms

    by JosAH
    Replies
    2
    Views
    120

    Re: Algorithms

    1) use Zeller's congruence method; the difference in days between two dates d1 and d2 is Z(d1)-Z(d2) where Z( ... ) is Zeller's congruence number.
    2) don't invoke F(n) for each value 'n' but use the...
  4. Re: how How to send user back to login page after a specific idle timeout

    I'd send a cookie to the client with a time stamp (according to the server); no cookie means a first time login and a cookie that is too old means a redirect to the login page ...

    kind regards,
    ...
  5. Re: Arithmetic expression that will display doubles to only one decimal place?

    With; a wooden one please.

    kindest regards,

    Jos ;-)
  6. Replies
    3
    Views
    132

    Re: Need Program help

    Not again ... @OP: a couple of your class mates also dumped their (identical) homework here; they didn't even write a small parser for that hypothetical language (there are some nasty problems in...
  7. Thread: Creating a file

    by JosAH
    Replies
    4
    Views
    155

    Re: Creating a file

    Why not create a small class for the purpose? Something like this will do:



    public class LazyFile {
    private FileOutputStream fos;
    private String name;

    public LazyFile(String name)...
  8. Replies
    7
    Views
    156

    Re: How to get the value for key in hashmap

    Print out what your program 'thinks' is the correct state/capital.

    kind regards,

    Jos
  9. Replies
    1
    Views
    220

    Re: What is chained Exception in java programs?

    New functionality? Don't talk nonsense; it has been here since Java 1.1

    Jos
  10. Replies
    2
    Views
    124

    Re: How to use finally exception in Java?

    It is just another sloppy, half-understood example; I already notified the forum owner a couple of days ago and asked him if he really wants this nonsense in his forums.

    kind regards,

    Jos
  11. Replies
    13
    Views
    169

    Re: Rough set theory in java

    I ran ----------------------------------------------------------------> that'a way and
    Darryl also went ---------------------------------------------------------> that a'way because he had to wash...
  12. Replies
    13
    Views
    169

    Re: Rough set theory in java

    Go from me, you Beelzebub! I was only kidding; a google is a fish; a halibut to be exact; honest! Now take that nasty stuff away!

    kind regards,

    Jos (runs...
  13. Replies
    13
    Views
    169

    Re: Rough set theory in java

    Of course not, you silly; everybody knows what a google is; a google is an aardvark like creature that goes 'oink, oink, oink' and it knows everything that's on the internet (it keeps a copy); all...
  14. Replies
    13
    Views
    169

    Re: Rough set theory in java

    I didn't know what rough sets were so I googled "rough set Java" and golly; the first hit was right on spot: https://code.google.com/p/roughsetlib/

    kind regards,

    Jos
  15. Thread: PBKDF2 enquiry

    by JosAH
    Replies
    4
    Views
    91

    Re: PBKDF2 enquiry

    Didn't you like the replies in your other thread? http://www.java-forums.org/new-java/92927-hashing-password.html#post396785

    kind regards,

    Jos
  16. Replies
    3
    Views
    170

    Re: Is this program idea possible with Java?

    This reminds me of the Unix pipes where an output stream of one process is 'piped' to an input stream of another process. Doing the same with, say, sound or whatever depends on the standardization of...
  17. Replies
    9
    Views
    166

    Re: Understanding an error

    I know; only I seem to think that it is funny; it must be my nerdy dna ;-)

    kind regards,

    Jos
  18. Replies
    9
    Views
    166

    Re: Understanding an error

    Or pass an argument value as I showed in my previous reply (don't forget to quote the entire thing to protect it against globbing ;-)

    kind regards,

    Jos
  19. Replies
    9
    Views
    166

    Re: Understanding an error

    If you supply an argument value '2*2*2*5*101=' the error would be less obvious ...

    kind regards,

    Jos ;-)
  20. Re: Shade the portion of a circle based on the area given

    What area? The area RAB? (R is the upper intersection point of both circles)

    kind regards,

    Jos
  21. Replies
    8
    Views
    238

    Re: Problem in Physical Printout

    It's voodoo, I'm telling you; computer science isn't science anymore; it's dark art ...

    kind regards,

    Jos (<--- dances around an old oak tree ;-)
  22. Replies
    8
    Views
    238

    Re: Problem in Physical Printout

    The strangest phenomenon (as far as I can see) is that your code prints 'Raj Billing', while the actual output shows 'Balu Textile' as the first line ...

    kind regards,

    Jos
  23. Replies
    1
    Views
    217

    Re: How to handle NumberFormatException ?

    The compiler couldn't and wouldn't care less; please stop spreading incorrect information (I'll inform the forum owner and ask him if he'd remove all your crap).

    Jos
  24. Replies
    1
    Views
    165

    Re: How to create exception object in java?

    You don't get an ExceptionObject error; you get an ArrayOutOfBoundsException; and puhlease, keep your (incorrect) trivialities to yourself; for some reason the owner of this forum made you a Super...
  25. Replies
    5
    Views
    180

    Re: Need new String value to appear on button

    b.t.w. if you change the text with the setText( ... ) method, there's no need to repaint() the Component; i.e. it is clever enough to update its visual appearance.

    kind regards,

    Jos
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4