I have basically given up on getting this wretched java tick done by 5pm, because currently it's just making me want to scream and hit things.
What is the way in java to:
1) Do a logical 'not' - putting a ! or 'not' in front of the statement just leads to errors, and the documentation I can find just doesn't have one - I need it for putting in front of string.equals
2) Pretend to one set of classes that you are standard input, and capture standard output (i.e. IO with System.out and System.in) to strings? (The second isn't quite as important.)
3) Force a random number generator (made with java.util.Random) to produce the same results as it did at some given time in the past.
These won't actually help me solve the problem, I think, because it's just plain broken (although I'd love to know how everyone else has got on with it, but I don't know enough first-year compscis to tell - I don't know anyone who's done it). Hopefully I'll be able to scream and hit people enough before next week to hand it in then.
What is the way in java to:
1) Do a logical 'not' - putting a ! or 'not' in front of the statement just leads to errors, and the documentation I can find just doesn't have one - I need it for putting in front of string.equals
2) Pretend to one set of classes that you are standard input, and capture standard output (i.e. IO with System.out and System.in) to strings? (The second isn't quite as important.)
3) Force a random number generator (made with java.util.Random) to produce the same results as it did at some given time in the past.
These won't actually help me solve the problem, I think, because it's just plain broken (although I'd love to know how everyone else has got on with it, but I don't know enough first-year compscis to tell - I don't know anyone who's done it). Hopefully I'll be able to scream and hit people enough before next week to hand it in then.
no subject
Date: 2004-05-04 06:32 pm (UTC)From: