Java
Java Applet Of Moving Plane
“applet” class [crayon-5a2bba61877f6026292890/] HTML File [crayon-5a2bba6187803990728038/] How to Run After compilation you can use “appletviewer” to run your applet. appletviewer xyz.html
“applet” class [crayon-5a2bba61877f6026292890/] HTML File [crayon-5a2bba6187803990728038/] How to Run After compilation you can use “appletviewer” to run your applet. appletviewer xyz.html
HCF and LCM [crayon-5a2bba6187e05742752094/] LCM LCM can be calculated using a*b/HCF
[crayon-5a2bba6188042628834687/] 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-5a2bba61883c5759509573/] 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-5a2bba618859f538169141/] Recursive [crayon-5a2bba61885a7766505892/]
[crayon-5a2bba6188783430957430/] Discussion Above is long and tedious way to convert decimal to binary. Other way is : [crayon-5a2bba618878b760503925/]
[crayon-5a2bba6188953875233413/] We can use Math class sqrt [crayon-5a2bba618895b880916361/] Discussion Give Input as command line arguments : java PerfectSquare 36
[crayon-5a2bba6188b46527332429/] Output [crayon-5a2bba6188b4d125885838/]
[crayon-5a2bba6188d56137545150/] [crayon-5a2bba6188d5d372883584/]