July 14th, 2015, 08:54 AM
either use debugger to understand what the second for loop is doing or use this software:
http://cs.joensuu.fi/jeliot/
it visualizes the variables quite nicely...
one way to do it is like this:...
March 8th, 2015, 04:56 PM
public void setSelected(boolean b)
Sets the state of the button. Note that this method does not trigger an actionEvent. Call doClick to perform a programmatic action change.
Parameters:
b - true...
June 15th, 2014, 06:17 AM
You are doing a swap to the right of the active array element. My understanding of the "swap all elements of the array with every possible combination of the elements of it" should give the result...
November 13th, 2013, 12:23 AM
November 11th, 2013, 05:16 PM
And the searchCustomerTable(str) is a java built in function...?
-------------------------------------------
ResultSet rs = db.searchCustomerTable(str);
October 30th, 2013, 05:12 PM
Each time you loop you overwrite the double finalpi with the statement
double finalpi = pistart + piloop;
pistart needs to be used only the first time. Either move it out of the loop or check if it...
October 27th, 2013, 02:56 PM
You are missing the BouncingBall class here. To make a guess when you call the line:
BouncingBall ball = new BouncingBall(x, y, 16, Color.blue, ground, myCanvas);
... the x and y are the...
June 27th, 2013, 04:05 PM
Works as expected. I get following output:
------------------
label
Stock@9304b1
------------------
When you create the object with these arguments the constructor prints the label and assigns...
June 25th, 2013, 06:06 PM
Make your variables non static, call these variables with a "this." keyword from within the class. You are not using the getter and setter methods within the Purchase class and at the moment you are...