0% found this document useful (0 votes)
12 views2 pages

Java Data Type Functions Guide

The document provides a reference for various Java data type functions, including methods for Character, Integer, Double, Float, Long, Boolean, Arrays, and Math. Each section lists specific functions along with their descriptions, such as checking types, converting values, and performing mathematical operations. This serves as a quick guide for developers to utilize Java's built-in functionalities effectively.

Uploaded by

sec23it013
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)
12 views2 pages

Java Data Type Functions Guide

The document provides a reference for various Java data type functions, including methods for Character, Integer, Double, Float, Long, Boolean, Arrays, and Math. Each section lists specific functions along with their descriptions, such as checking types, converting values, and performing mathematical operations. This serves as a quick guide for developers to utilize Java's built-in functionalities effectively.

Uploaded by

sec23it013
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 Data Type Functions Reference

Character
- [Link](char c) – Checks if character is a digit.
- [Link](char c) – Checks if character is a letter.
- [Link](char c) – Checks if letter or digit.
- [Link](char c) – Checks if uppercase.
- [Link](char c) – Checks if lowercase.
- [Link](char c) – Converts to uppercase.
- [Link](char c) – Converts to lowercase.
- [Link](char c) – Checks if whitespace.

Integer
- [Link](String s) – Converts string to int.
- [Link](String s) – Returns Integer object.
- [Link](int i) – Converts int to String.
- [Link](int x, int y) – Compares two ints.
- [Link](int a, int b) – Returns maximum.
- [Link](int a, int b) – Returns minimum.
- [Link](int a, int b) – Returns sum.

Double
- [Link](String s) – Converts string to double.
- [Link](String s) – Returns Double object.
- [Link](double d) – Converts double to string.
- [Link](double v) – Checks if value is NaN.
- [Link](double v) – Checks if infinite.
- [Link](double x, double y) – Compares doubles.

Float
- [Link](String s) – Converts string to float.
- [Link](String s) – Returns Float object.
- [Link](float v) – Checks if NaN.
- [Link](float v) – Checks if infinite.
- [Link](float x, float y) – Compares two floats.

Long
- [Link](String s) – Converts string to long.
- [Link](String s) – Returns Long object.
- [Link](long l) – Converts long to string.
- [Link](long x, long y) – Compares longs.
- [Link](long a, long b) – Returns maximum.
- [Link](long a, long b) – Returns minimum.
Boolean
- [Link](String s) – Converts string to boolean.
- [Link](String s) – Returns Boolean object.
- [Link](boolean b) – Converts boolean to string.
- [Link](boolean x, boolean y) – Compares booleans.

Arrays ([Link])
- [Link](array) – Sorts the array.
- [Link](array, key) – Searches key.
- [Link](array, newLength) – Copies array.
- [Link](arr1, arr2) – Checks equality.
- [Link](array, val) – Fills array with value.
- [Link](array) – Converts array to string.

Math
- [Link](a, b) – Returns maximum.
- [Link](a, b) – Returns minimum.
- [Link](a) – Absolute value.
- [Link](a, b) – Power calculation.
- [Link](a) – Square root.
- [Link]() – Random number between 0.0 and 1.0.
- [Link](a) – Rounds to nearest integer.
- [Link](a), [Link](a) – Floor/Ceil values.

You might also like