I decided to put up my classes in case there is something I am missing, although they compile fine.
The 2 errors in the code, one is supposed to come from Laptop and on from Desktop. I do not...
Type: Posts; User: Dragonkndr712
I decided to put up my classes in case there is something I am missing, although they compile fine.
The 2 errors in the code, one is supposed to come from Laptop and on from Desktop. I do not...
I am having problem with class extending a class. I have the classes needed wrote correctly but when writingthe test case there is an error message.
import javax.swing.JOptionPane;
public...
Could you explain a little more. I am a newbie and I dont quite understand what you mean.
How would you call something from one method to another? More specific how would you call an answer to a question from one method to use in another method?
thank you that did it.
I'm sorry I am a newbie and I do not understand what this does.
Ok, how do I fix that?
When the loop runs it wants to know how many times to repeat. It does this just fine but when it comes to the last runthrough of the loop where it should print out all of the messages it only prints...
I want to apologize now I am unsure what I did wrong when trying to put it in the proper format.
Actually the for loop works it's just that what I am having to do is pushed through with JOptionPane output. It will only print out the last part of the loop when it needs to print all the runs. This...
That worked not sure why but my program works now. Thank you.
Output expected is that in command prompt it will ask for the name and how kilowatts. It will then give the answer in the joptionpane. The first customer works fine but when the second time comes up...
Thank you for pointing out about kilowatt, you were right on that point but it still doesn't fix my problem. here is the new code, hopefully you can figure out where I am going wrong.
//import...
I am new to java and in this assignment I need to make a spot to enter the customer's name and amount of kilowatt usage. I need to do this for three people, the first time through it works fine but...