| Joined: Dec 2002 Posts: 3,255 Likes: 3 UGN Elite | UGN Elite Joined: Dec 2002 Posts: 3,255 Likes: 3 | | | |
▼ Sponsored Links ▼
▲ Sponsored Links ▲
| | | Joined: Dec 2002 Posts: 3,255 Likes: 3 UGN Elite | UGN Elite Joined: Dec 2002 Posts: 3,255 Likes: 3 | Now on with the questions I want to show the actual value of the variables. | | | | Joined: Mar 2002 Posts: 1,136 UGN Elite Poster | UGN Elite Poster Joined: Mar 2002 Posts: 1,136 | JOptionPane.showMessageDialog("num1 = " + num1);
JOptionPane.showMessageDialog("num2 = " + num2); Java will automatically figure out how to convert any primitive type (ints, chars) or any object into a String, so for any method that requires a String argument, you can just pass the variable, or as in this case, build a string. There were a couple versions of the tutorials floating around, some with those errors you mentioned, and some where I had them fixed. If I get some time this weekend, I'll fix everything, or you can use it as a project and do it yourself, and save the changes online. | | | | Joined: Mar 2002 Posts: 860 Likes: 1 Der �belt�ter | Der �belt�ter Joined: Mar 2002 Posts: 860 Likes: 1 | Don't egg him on like that...he'll start to believe it. | | | | Joined: Dec 2002 Posts: 3,255 Likes: 3 UGN Elite | UGN Elite Joined: Dec 2002 Posts: 3,255 Likes: 3 | Originally posted by unreal: Don't egg him on like that...he'll start to believe it. Who said I was egging him on. No realy, I have built a pergesu shrine in my closet I visit every day. I love you pergesu. I stand outside your house at night hoping I might see you... <img border="0" alt="[bananna]" title="" src="graemlins/bananna.gif" /> | | | | Joined: Oct 2002 Posts: 616 UGN Super Poster | UGN Super Poster Joined: Oct 2002 Posts: 616 | Heh Perg, maybe you shouldn't worry about the gizzy bites now when you go to bed, worry about the syntax face outside your window shivering staring in from the cold:X
Liek I do like perg's sam adam's quote. I'm a big founding fathers guy, also I liek the beer kthx. Corona, and coors I drink more though. All of them had some pretty tight quotes. Um, perg, sr, neo, giz, para, meh lots of ppl in ugn code, and have coding skills. We're board ppl with mathimatical minds, that are wasted by our lack for potential output, and motivation. For most of us, a relationship with a woman doesn't change that either. We all have our path to walk, and we all wait sometimes. We're all gonna get to a point sometime though I think, when find a worthy cause, and output like mechanical drones.
Though I did say that 5-8 years ago, a few times...meh..you get my point, which is...[censored]..I don't even know but you get it!
"Beware the Jabberwock, my son! The jaws that bite, the claws that catch! Beware the Jubjub bird, and shun The frumious Bandersnatch!"
| | |
Forums41 Topics33,840 Posts68,858 Members2,176 | Most Online3,253 Jan 13th, 2020 | | | |