Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
0Activity
0 of .
Results for:
No results containing your search query
P. 1
Java Basics

Java Basics

Ratings: (0)|Views: 7|Likes:
Published by Poundzzzz

More info:

Published by: Poundzzzz on Apr 03, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
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:
HarmonicsFactorialConvert Decimal to BinaryLetter Grade
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.
Letter Grade:Methods -
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

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->