Archive for July, 2011


Question by Hunter2012: Newbie with Java Programming (If statements and Doubles)?
I’m a beginner at Java Programming and I’m having problems with a part of my program. Heres a piece of the code towards the end.

String Option4 = JOptionPane.showInputDialog(“For Designer Furniture with Cloth Upholstery Enter 1 n” +
“For all Above Plus Captains Chair with Leather Upholstery enter 2 n” +
“For all Above Plus Plush Carpet Cermaic Tiling, and Wood Panels Enter 3 n” +
“For all Above Plus Gold Kitchen & Bath Fixtures, Jacuzz and Sauna Enter 4 n”);

if(Integer.parseInt(Option4)== 1)
{
double opt4 = 15000;
}
else if(Integer.parseInt(Option4) == 2)
{
double opt4 = 20000;
}
else if(Integer.parseInt(Option4) == 3)
{
double opt4 = 30000;
}
else if(Integer.parseInt(Option4) == 4)
{
double opt4 = 35000;
}
else
{
String errorMessage = “Incorrect Input for Motor Home.”;
JOptionPane.showMessageDialog(null,errorMessage);
}

/** This it the calculations part of the program
*
*/
double totalHomeCost = Opt1 + Opt2 + Opt3 + opt4;

for some reason it keeps coming up with an error message saying that it cant find the symbol/variables for Opt1 Opt2 etc. All of my variables have been declared in the same manner as above with the If statements, so why wont it let me add them together?

Best answer:

Answer by jouzef19
i guess your problem in the declaration location .
because if the program does not enter to any if statement for any reason
the program will enter directly to the ELSE then to the calculation in this time it will be sub rise because the variable dose not declared in the ELSE statement
try to declared all variables outside the IF statement(Good idea) . OR in every IF statement and ELSE statement(bad idea) .

Know better? Leave your own answer in the comments!

Technorati Tags: , , , ,

Oklahoma Lemon Law… Please Help :)?

Question by Everyone’s #1: Oklahoma Lemon Law… Please Help icon smile Oklahoma Lemon Law... Please Help :)? ?
I just bought a car today. They told me everything was perfect with the car, except for some exterior damage, which didn’t bother me. I and two of my friends test drove it three different times and everything really did seem perfect. Literally after a short drive home the brakes seemed to be not working.
1.) It takes a very long time to stop
2.) There is an awful burning smell after driving on the highway.
3.) One of the doors stopped opening
4.) A belt or something starting squeaking

All of this not even 24 hrs after of purchasing the car. I bought it out right and have a huge regret. I looked up the Lemon Law and it states:

Oklahoma Lemon Laws cover “Any motor driven vehicle required to be registered, excluding vehicles above 10,000 pounds GVW and the living facilities of motor homes.”

Manufacturers are entitled to 4 repair attempts or 45 days out of service before it qualifies under Oklahoma Law as a Lemon.

Cars are covered under the Oklahoma Lemon Law for Warranty period or 1 year.

So even though it was bought as is and out right I am still protected. Right? It says “ANY MOTOR DRIVEN VEHICLE”

Thanks in advance
Gotta Love dealerships and salesmen… I was like a big red target. Lessons learned.

Best answer:

Answer by emiller1998
You bought a used car so no you cant claim its a lemon. You also bought it “as is” so the dealer doesn’t have to do anything for you.

Give your answer to this question below!

Technorati Tags: , , , ,

What does my dream mean? Can you tell me?

Question by iv: What does my dream mean? Can you tell me?
I had a weird dream that started in my old high school. I’m not exactly sure what happened there but everyone was getting out, like for summer or something. Later in my dream I was inside some small (like a motor home) dark house, but it was decorated really nicely and fancy inside. Outside there was a concert or something, there were lots of people. While inside the “motor home” I was trying to keep away from a bad vibe or something. I realized my clothes were really wet so I down the short narrow hall and turned left into a very large bathroom.

I took off my clothes, and set them on the counter which held up a big mirror. I sat on the toilet which was facing the mirror, and though my wet clothes were off, I still had on a shirt.. maybe it was my undershirt? Well I got my clothes because I thought “are my clothes actually wet? I don’t remember getting wet or anything.” I held up my jeans in front of me blocking the mirror, they were blue. I repeated the process with the shirt I was wearing. It was a shirt that I do own, it has pictures of the movie Alice in Wonderland. All the main characters are on it. When I put my shirt down there was a guy behind me. I got scared because… well I was sitting on a toilet in underwear and a tank top. I turned to look at him. Its my boyfriend’s deaf brother, “hi,” he says with a smile. I can’t sign because i don’t know how, so I just make a “wtf” face at him and sort of shrug my shoulders and shake my head in a “what are you doing here?” kind of way. He tells me “its ok remember?” I still look lost. But apparently we were “even” now because of something I had done to him earlier in the dream which I don’t remember. But it was fine and then I left.

I went outside, fully clothed, and went to the stage. There was a big stage with a small band that was only occupying the bottom right corner. That’s where I was standing. Facing towards them. To the far right of me was the crowd which put them behind the stage. There were only some people next to me. Across and to the right of the stage was a smaller platform with a DJ and one other person in the background. The band starts playing but it seems like they’re sound is being controlled by the DJ. Somehow, I realized that the DJ was actually the devil. When I looked to the crowd they were all jumping and dancing like they would to techno. But the DJ wasn’t playing techno and you couldn’t really hear the band. I knew this was part of the devil’s evil plot to… well I’m not sure what his plan was, but I knew I had to stop it. I tried yelled “the DJ is the devil! the DJ is the devil!” but nobody believed me. I looked over to the DJ and he gave me an evil smirk. I thought, well maybe if the band plays louder that will stop him. So I began to chant, “we can’t hear! louder! louder! louder! louder!” and others joined in too because we couldn’t hear the band. It seemed like the band was trying to in fact play louder but they weren’t very successful and then I think the devil yelled at me to stop chanting and I stopped, so did everyone else.

The band looked dumbfounded and fussed with their instruments and wires. I woke up shortly after… any ideas?
The crowd that was sort of behind the stage seemed zombie-like. The dark house I was in seemed to be illuminated by orange light.

Best answer:

Answer by Kelsey
That is all very confusing but i think it’s that your boyfriend is cheating on you witch explains the devil. Also i think your boyfriends brother loves you since he was in your dream.

I don’t know maybe it was just a normal dream.
Hope i helped!!!

Add your own answer in the comments!

Technorati Tags: , ,

Modern luxury meets fuel efficiency. We call it Icon. You’ll call it amazing. Powered by a Mercedes-Benz® 3.0L, 6-cylinder turbo diesel engine, Icon’s core foundation is the durable Dodge® Sprinter chassis.
Video Rating: 4 / 5

Technorati Tags: , , , , , , ,

does anybody get this?

Question by Dani B: does anybody get this?
A blonde goes to the local restaurant, buys a small drink for herself, and sits down to drink it. She notices a peel-off prize sticker on the side of her cup while she is drinking. After pulling off the tab, she begins screaming, “I won a motor home! I won a motor home!”

The waitress runs over and argues, “That’s impossible. The biggest prize given away was a stero system!”

The blonde replies, “No. I won a motor home!”

By this time, the manager makes his way over to the table, and he too argues, “You couldn’t possibly have won a motor home because we didn’t have that as one of our prizes.”

Again the blonde says, “There is no mistake! I won a motor home!”

The blonde hands the prize ticket to the manager and he reads, “WIN A BAGEL.” i dont get it?!!?

Best answer:

Answer by Spyderbear
Win a bagel = Winnebago (manufacturer of motor homes)

*Pats her on the head and says “run along now”*

What do you think? Answer below!

Technorati Tags: ,

 Page 2 of 2 « 1  2 

Powered by Yahoo! Answers

SEO Powered By SEOPressor