Java
Java Applet Of Moving Plane
“applet” class [crayon-5a2bba6768af1820204406/] HTML File [crayon-5a2bba6768b04388558291/] How to Run After compilation you can use “appletviewer” to run your applet. appletviewer xyz.html
“applet” class [crayon-5a2bba6768af1820204406/] HTML File [crayon-5a2bba6768b04388558291/] How to Run After compilation you can use “appletviewer” to run your applet. appletviewer xyz.html
HCF and LCM [crayon-5a2bba6769365521545719/] LCM LCM can be calculated using a*b/HCF
[crayon-5a2bba67695f8605055337/] Discussion In above code sample we have not enclosed sum/length into Parentheses but in some programs we have enclosed arithmetic calculations into parentheses. It is because /,*,% are not overloaded while + is overloaded and that’s why (-) will also be trouble in situations where (+) precedes (-) in Read more…
[crayon-5a2bba6769a8e923485654/] Discussion In above code sample we have used str.length() where length() is a function but for array length we use array.length where length is property.
Simple [crayon-5a2bba6769cd3262174938/] Recursive [crayon-5a2bba6769cdc262077113/]
[crayon-5a2bba6769f47539626234/] Discussion Above is long and tedious way to convert decimal to binary. Other way is : [crayon-5a2bba6769f52446512066/]
[crayon-5a2bba676a1ac534504715/] We can use Math class sqrt [crayon-5a2bba676a1b7378028970/] Discussion Give Input as command line arguments : java PerfectSquare 36
[crayon-5a2bba676a41c928765128/] Output [crayon-5a2bba676a426789005576/]
[crayon-5a2bba676a665083388142/] [crayon-5a2bba676a66e066801866/]