Forum: Java Jun 29th, 2005 |
| Replies: 10 Views: 2,048 Hi, there.
What is the variable 'zero' supposed to be ?
Also, 'denominatorField' is a component, why do you compare a component with the variable 'zero' (I assume zero = 0). |
Forum: Java Sep 15th, 2004 |
| Replies: 2 Views: 2,401 Hi.
The following link would probably help.
Java: Beep (http://leepoint.net/notes-java/43other/40sound/10beep.html) |
Forum: Java Aug 11th, 2004 |
| Replies: 4 Views: 5,556 Greetings.
Erm, okay, sorry for that.
You said you'd want to create a while loop?
So my question was, what do you want that while loop to do?
Keep prompting for an input (in your case, choice)... |
Forum: Java Aug 11th, 2004 |
| Replies: 4 Views: 5,556 Greetings.
What would you like to do in order to trigger the loop?
When the input given is none other than "play" or "end" ? |
Forum: Java Aug 10th, 2004 |
| Replies: 3 Views: 2,287 Greetings.
if (age<18 || age>64)
// do something
else
// do something
I think you should use the OR operator instead of AND because if it is rather impossible to get a number which is... |
Forum: Java Aug 6th, 2004 |
| Replies: 11 Views: 6,514 Greetings, Neil.
I'd like to help but could you please check your form?
I cannot view it. Thanks. |
Forum: Java Jul 25th, 2004 |
| Replies: 3 Views: 16,873 Greetings.
This would be of help to you.
Java String api (http://java.sun.com/j2se/1.3/docs/api/)
Have a look at java.lang -> String. |
Forum: Java Jul 13th, 2004 |
| Replies: 6 Views: 19,400 Greetings.
Umm...I guess what you want would be something like this:
public class Ambulance {
public static void main(String[] arg) {
String foo;
char[] chr;
foo =... |
Forum: Java Jul 13th, 2004 |
| Replies: 6 Views: 19,400 Greetings.
Hi. Post what you have done and we'll see how we could help you. ;) |
Forum: Java Jul 11th, 2004 |
| Replies: 8 Views: 4,735 Greetings.
No problem! ;) |
Forum: Java Jul 4th, 2004 |
| Replies: 8 Views: 4,735 Greetings.
LOL, I see. That's good. I mean, you have the inquisitiveness to explore although you know of a way which would work.
Well, "==" differs from "=" as in:-
-> "=" is used for... |
Forum: Java Jul 3rd, 2004 |
| Replies: 8 Views: 4,735 Greetings.
If I am not mistaken, the target in the switch statement works for Integers only.
Java experts, please correct me if I'm wrong.
You could use If statements instead if switch doesn't... |
Forum: Java Jun 21st, 2004 |
| Replies: 2 Views: 9,214 Greetings.
Cool, I should say.
Sorry to interrupt on the thread.
How about this:-
Thanks. |
Forum: Java Jun 20th, 2004 |
| Replies: 9 Views: 27,154 Greetings.
Errr, do you mean that you have set the path in the System Properties?
With Variable: Path
and Value: c:/j2sdk1.4.2_04/bin ? |
Forum: Java Dec 29th, 2003 |
| Replies: 2 Views: 15,031 Hi :-) First and foremost, is it a fixed format for there be a slash after the name, after the first integer and after the second integer? |
Forum: Java Jul 28th, 2003 |
| Replies: 2 Views: 6,589 Hehe... I've got it already...because my assignment duedate was yesterday. It's actually a very simple way of solving...But thank you anyway... ;) |
Forum: Java Jul 25th, 2003 |
| Replies: 2 Views: 6,589 Hi..I've been searching all around to find out whether I could submit an entry in a JTextField by clicking a separate button created (say, a "submit" button).
It seems that, the value entered in the... |
Forum: Java Jul 16th, 2003 |
| Replies: 10 Views: 53,725 |
Forum: Java Jul 14th, 2003 |
| Replies: 13 Views: 5,801 Hey, thanx! I've went through the tutorials (not everything though).
It proves useful for beginners like me. :) [/code] |
Forum: Java Jul 14th, 2003 |
| Replies: 13 Views: 5,801 It's just a simple guessing game where a player thinks of a number and another player guess it. The main program of it should not be a problem. The interface is giving me headache as I am used to... |
Forum: Java Jul 14th, 2003 |
| Replies: 10 Views: 53,725 Cool~
Thanks...hehe...guess I've learned something new here. Btw, this means that replaceAll is a method in java.lang.String? |
Forum: Java Jul 14th, 2003 |
| Replies: 13 Views: 5,801 ;) Sure! No problemo!
Err...I guess I'll give it a try...rather than waiting for someone to lighten me up on this.
Ciao! Thanks! |
Forum: Java Jul 14th, 2003 |
| Replies: 13 Views: 5,801 Yup...Thanks! ;)
Oh yeah...one more thing here, can 2 layouts be combined in a frame?
Err...btw, is frame the correct word...hehe....pardon me, I'm real new in this.
For eg. can I use... |
Forum: Java Jul 14th, 2003 |
| Replies: 13 Views: 5,801 OK...I think I've got something through... :?
Well, thanks so much, you guys.
I think I'll stick to application...as I am not creating a webpage...
Is my assumption correct? 8)
Fuh...Now's... |
Forum: Java Jul 14th, 2003 |
| Replies: 13 Views: 5,801 Oops! I forgot, and if your choice is so, why is that?
I would really like to know the limitations of either one of those.
What can one do when the other cannot? Err...kind of lost here. :roll: |
Forum: Java Jul 14th, 2003 |
| Replies: 13 Views: 5,801 Hi, there!
Anyone mind lighten me up on the above subject?
I am currently developing a simple game in java.
So I was in the process of deciding whether to use an applet or application to present... |
Forum: Java Jul 14th, 2003 |
| Replies: 10 Views: 53,725 Thank you so much...So, here I am, trying with those suggestions given...
class extra{
public static void main(String[] args){
String output = "";
for(int i=0;... |
Forum: Java Jul 13th, 2003 |
| Replies: 10 Views: 53,725 Hi. I have just been introduced to string tokenizer in one of the java lessons. It can remove characters from an array of strings. So, I am wondering if it could remove a string from an array of... |