i have to write 3 JAVA programs for my computer programming class..... anyone know the code for writing a mutilpication table???? and how to write a mouse listener method so that the mouse could drag the thing i draw in applet>?? thx a lot....
(Edited by Iris outsider at 12:12 pm on Jan. 22, 2005)
------- If I could rearrange the alphabets,I would've put U&I together.....
10:08 am on Jan. 22, 2005 | Joined: Dec. 2004 | Days Active: 60 Join to learn more about Iris outsiderIllinois, United States | StraightFemale | Posts: 416 | Points: 1,012
LiveWire Humor
squirellplayingtag
Dairy Product Addict Patron
Multiplication table = basic nested for loops.
------- "The most abundant element in the universe is hydrogen, then second is stupidity."-Harlan Ellison "What good fortune for our governments that the people do not think."-Hitler
10:19 am on Jan. 22, 2005 | Joined: Jan. 2003 | Days Active: 1,260 Join to learn more about squirellplayingtagMaryland, United States | StraightMale | Posts: 6,458 | Points: 27,128
( Iris outsider )
Dairy Product Addict
i plan to use for loop but dont know how to organize them as a table... i wrote it before but i forget....
------- If I could rearrange the alphabets,I would've put U&I together.....
10:22 am on Jan. 22, 2005 | Joined: Dec. 2004 | Days Active: 60 Join to learn more about Iris outsiderIllinois, United States | StraightFemale | Posts: 416 | Points: 1,012
squirellplayingtag
Dairy Product Addict Patron
Show me some code and I can help, but I'm not going to do it for you.
------- "The most abundant element in the universe is hydrogen, then second is stupidity."-Harlan Ellison "What good fortune for our governments that the people do not think."-Hitler
10:34 am on Jan. 22, 2005 | Joined: Jan. 2003 | Days Active: 1,260 Join to learn more about squirellplayingtagMaryland, United States | StraightMale | Posts: 6,458 | Points: 27,128
( Iris outsider )
Dairy Product Addict
ok
for example i want the program to calculate x+y,where x has increment from 1 to 10,same with y.show the results in table format. i would do this for(x=1;x<=10;x++); for(y=1;y<=10;y++); double result=x+y; tell me a segment of code to make it in table format....... thx
------- If I could rearrange the alphabets,I would've put U&I together.....
11:45 am on Jan. 22, 2005 | Joined: Dec. 2004 | Days Active: 60 Join to learn more about Iris outsiderIllinois, United States | StraightFemale | Posts: 416 | Points: 1,012
squirellplayingtag
Dairy Product Addict Patron
I don't know the swingclass or anything graphical. But I learned.
------- "The most abundant element in the universe is hydrogen, then second is stupidity."-Harlan Ellison "What good fortune for our governments that the people do not think."-Hitler
12:07 pm on Jan. 22, 2005 | Joined: Jan. 2003 | Days Active: 1,260 Join to learn more about squirellplayingtagMaryland, United States | StraightMale | Posts: 6,458 | Points: 27,128