1/20
A collection of vocabulary flashcards for key concepts related to mathematical functions, characters, and strings in Java programming.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Math Class
A class in Java that provides many useful methods for performing common mathematical functions.
exp(double a)
Returns e raised to the power of a.
log(double a)
Returns the natural logarithm of a.
sqrt(double a)
Returns the square root of a.
ceil(double x)
Returns x rounded up to its nearest integer.
floor(double x)
Returns x rounded down to its nearest integer.
abs(a)
Returns the absolute value of the parameter a.
random()
Returns a random double value in the range [0.0, 1.0).
Character Data Type
Represents a single 16-bit Unicode character in Java.
Unicode
A 16-bit encoding scheme that supports the representation of characters from various languages.
isDigit(ch)
Returns true if the specified character is a digit.
String Type
A data type in Java that represents a sequence of characters.
length()
Returns the number of characters in a string.
charAt(index)
Returns the character at the specified index from a string.
concat(s1)
Returns a new string that concatenates this string with string s1.
toUpperCase()
Returns a new string with all letters in uppercase.
toLowerCase()
Returns a new string with all letters in lowercase.
trim()
Returns a new string with whitespace removed from both ends.
printf()
A method used to format output using specified format specifiers.
%d
Format specifier for decimal integers.
%f
Format specifier for floating-point numbers.