0% found this document useful (0 votes)
17 views1 page

Java1 5

Uploaded by

bjinfotech95
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views1 page

Java1 5

Uploaded by

bjinfotech95
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Java

11. Java – Numbers Class .............................................................................................................................. 82


Number Methods .......................................................................................................................................... 83
Java XXXValue Method .................................................................................................................................. 86
Java – compareTo() Method .......................................................................................................................... 87
Java – equals() Method ................................................................................................................................. 88
Java – valueOf() Method ............................................................................................................................... 89
Java – toString() Method ............................................................................................................................... 91
Java – parseInt() Method ............................................................................................................................... 92
Java – abs() Method ...................................................................................................................................... 93
Java – ceil() Method ...................................................................................................................................... 94
Java – floor() Method .................................................................................................................................... 95
Java – rint() Method ...................................................................................................................................... 96
Java – round() Method .................................................................................................................................. 97
Java – min() Method ...................................................................................................................................... 98
Java – max() Method ..................................................................................................................................... 99
Java – exp() Method .................................................................................................................................... 100
Java – log() Method ..................................................................................................................................... 101
Java – pow() Method ................................................................................................................................... 102
Java – sqrt() Method.................................................................................................................................... 103
Java – sin() Method ..................................................................................................................................... 104
Java – cos() Method ..................................................................................................................................... 105
Java – tan() Method ..................................................................................................................................... 106
Java – asin() Method ................................................................................................................................... 107
Java – acos() Method ................................................................................................................................... 108
Java – atan() Method ................................................................................................................................... 109
Java – atan2() Method ................................................................................................................................. 110
Java – toDegrees() Method ......................................................................................................................... 111
Java – toRadians() Method .......................................................................................................................... 112
Java – random() Method ............................................................................................................................. 113
What is Next? .............................................................................................................................................. 114

12. Java – Character Class ........................................................................................................................... 115


Escape Sequences........................................................................................................................................ 115
Character Methods ...................................................................................................................................... 117
Java – isLetter() Method .............................................................................................................................. 117
Java – isDigit() Method ................................................................................................................................ 118
Java – isWhitespace() Method .................................................................................................................... 119
Java – isUpperCase() Method ...................................................................................................................... 120
Java – isLowerCase() Method ...................................................................................................................... 121
Java – toUpperCase() Method ..................................................................................................................... 122
Java – toLowerCase() Method ..................................................................................................................... 123
Java – toString() Method ............................................................................................................................. 124
What is Next? .............................................................................................................................................. 125

13. Java – Strings Class ................................................................................................................................ 126


Creating Strings ........................................................................................................................................... 126
Java – String Buffer & String Builder Classes ............................................................................................... 126
StringBuffer Methods .................................................................................................................................. 127
Java – String Buffer append() Method ........................................................................................................ 128
Java – String Buffer reverse() Method ......................................................................................................... 129

iv

You might also like