Results 1 to 13 of 13
- 10-20-2010, 06:44 AM #1RanLineR Guest
- 10-20-2010, 06:49 AM #2
What do you mean by 2 strings, you want to have 2 input boxes in the same JOptionPane?
Sincerely, Joshua Green
Please REP if I help :)
- 10-20-2010, 06:55 AM #3RanLineR Guest
hmm i mean
like this
int = a, b result= 0;
double = c result =0;
then
String str1,str2;
is that right?
- 10-20-2010, 06:57 AM #4RanLineR Guest
hmm i mean
like this
int = a, b result= 0;
double = c result =0;
then
String str1,str2;
is that right?
- 10-20-2010, 07:04 AM #5
First of all you are declaring variables wrong. To declare integers you must declare them like this:
Java Code:int a, b, result = 0;
This will create 3 variables. 'a' and 'b' which have no values assigned and 'result' which is given the value of 0. Do this also with your double variables. The strings you have correct, but I'm wondering why you asked about JOption?
I'm sorry if I'm not fully understanding your question. What are you trying to do exactly? What is the program?Sincerely, Joshua Green
Please REP if I help :)
- 10-20-2010, 07:22 AM #6
The values work fine for me, are you having trouble doing the calculations for output?
Sincerely, Joshua Green
Please REP if I help :)
- 10-20-2010, 07:29 AM #7
Take a look through this: Examples of java.lang.Math Methods
It has examples of the Math Functions and it has everything you need to complete your program.Sincerely, Joshua Green
Please REP if I help :)
- 10-20-2010, 07:34 AM #8
No problem, and good luck!
Sincerely, Joshua Green
Please REP if I help :)
- 10-20-2010, 10:46 AM #9
One new thread for every little question?
Example of JOption
What's the next? let me quess
Can someone give a sample for JOption with 3 strings?
db
- 10-20-2010, 05:59 PM #10
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,385
- Blog Entries
- 7
- Rep Power
- 17
The OP should read the API documentation for that class; it's all in there. The OP has polluted this forum more than enough with repetative questions about this class without showing any effort (nor creativity) to solve the 'problems' (mind the quotes). I'd say back to the API documentation.
kind regards,
Jos
- 10-22-2010, 06:30 AM #11
What do you need to do with the strings? Compare them to each other?
Sincerely, Joshua Green
Please REP if I help :)
- 10-22-2010, 06:59 AM #12
I know, but what if the first string is not equivalent to the second string? Should it output something like... "String1 is not equal to String2"? Or are there no specific directions?
Sincerely, Joshua Green
Please REP if I help :)
- 10-22-2010, 07:52 AM #13
Similar Threads
-
Example of JOption
By RanLineR in forum New To JavaReplies: 4Last Post: 10-20-2010, 12:27 PM -
JOption pop up window is behind all other windows
By biggmann in forum New To JavaReplies: 3Last Post: 10-15-2010, 08:24 PM -
JOption Msgbox title help?
By ZaabZ in forum New To JavaReplies: 7Last Post: 08-26-2010, 09:12 PM -
Memory card game using JOption... Need help flipping cards...more info inside, thanks
By moe123 in forum New To JavaReplies: 1Last Post: 12-02-2009, 03:39 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks