Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
0 of .
Results for:
P. 1
Java Basics

# Java Basics

Ratings: (0)|Views: 7|Likes:

### Availability:

See more
See less

04/03/2012

pdf

text

original

Pachara RatanabanthoonProject Java BasicsIntroIn this program, I have the Panel and items for main folders, and sub items for eachprogram. Folders are Math Programs, Algorithm Programs, and Graph Programs.

JTextFieldOut 1-3JTextFieldIn 1-3
Math calculations for:
Harmonics:Methods -
The loop goes on as long as theinput number. Then each time theloop is run, the result will beadded with 1/the amount of timethe loop has been running.
Factorial:Methods
–

The loop goes on as long as theinput number. Then each time theloop is run, the result will bemultiplied with the amount of time the loop has been running.
Convert Decimal to Binary:Methods
–

The loop runs as long as the inputnumber is more than 0. Each timethe loop is run, the input will bedivided by 10 and its remainderwill be saved.
Check the input value correspondsto which letter grade.Math

BubbleSort3 overloaded methodsParse inputInt[]aChar[]aString[]sJTextFieldOut 1-3JTextFieldIn 1-3Jbuttons1-3Parse outputJbutton EventhandlerConstructoutput stringin a loopCount items,Construct a string[]element for everyseparator, stop whenreach end of inputstringAdd features for more separators and trimming:s.charAt(i) == ',' || s.charAt(element) !=' ' ||s.charAt(element) !='-'AndFor(int I = 0; i<p.values.lenght; i++){p.values[i].trim() ;}
Add features for more types of input for sorting:Integer =
Change the data type of the storage object intointeger.
Double =
Change the data type of the storage object intodouble.
Character =
Change the data type of the storage object intocharacter.Algorithm