3. How did you go about testing your program? What were the results of that testing?
I tested my programing at first giving values to my variable to see if I needed it or not and if it worked. After it worked, I made the user put in values
Friday, October 26, 2007
Wednesday, October 24, 2007
1. What problems did you encounter while developing your solution? How do you plan to overcome
them?/How did you overcome them? The problems I had but did not notice was that you couldn't use the == for a string since they were objects. Instead of using that, Ms.Petr taught us a way by using s.equals("A")
them?/How did you overcome them? The problems I had but did not notice was that you couldn't use the == for a string since they were objects. Instead of using that, Ms.Petr taught us a way by using s.equals("A")
Tuesday, October 23, 2007
Tuesday, October 16, 2007
5. Provide yourself an example (not one from your instructor) of how you use a particular command thatwill help jog your memory in the future when you need that command again. You must provide a littlecode as well as a written explanation with this one.
when using user input, everything is taken in as a string. To get user input you use,
s=JOptionPane.showInputDialog("blah");
and to convert the string to an int, x=Integer.valueOf(s);
when using user input, everything is taken in as a string. To get user input you use,
s=JOptionPane.showInputDialog("blah");
and to convert the string to an int, x=Integer.valueOf(s);
Monday, October 15, 2007
Wednesday, October 10, 2007
5. Provide yourself an example (not one from your instructor) of how you use a particular command that
will help jog your memory in the future when you need that command again. You must provide a little
code as well as a written explanation with this one.
when using a void method, you do not need to use "System.out.println". That is only when you have an acessor method, like int or double.
will help jog your memory in the future when you need that command again. You must provide a little
code as well as a written explanation with this one.
when using a void method, you do not need to use "System.out.println". That is only when you have an acessor method, like int or double.
Tuesday, October 9, 2007
Monday, October 8, 2007
Thursday, October 4, 2007
Wednesday, October 3, 2007
Tuesday, October 2, 2007
3. How did you go about testing your program? What were the results of that testing?
The results of testing was that the output of the car class assignment came out weirdly after it resested the MPG. I asked the teacher what was wrong after I looked at what was wrong. After playing around with the program, it came out with fine.
Subscribe to:
Posts (Atom)