1/14
These flashcards cover key concepts in Java programming related to mathematical functions, characters, strings, and formatting output.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Math Class
A class in Java that provides methods for performing common mathematical functions.
Exponent Methods
Methods such as exp, log, and pow that deal with exponential operations.
ceil method
Rounds a double value up to the nearest integer.
floor method
Rounds a double value down to the nearest integer.
abs method
Returns the absolute value of a given parameter.
random method
Generates a random double value in the range [0.0, 1.0).
Unicode
A 16-bit encoding scheme to represent written texts in diverse languages.
Character Class Methods
Methods that allow testing and converting characters such as isDigit, isLetter, isUpperCase.
String Type
A reference type in Java used to represent a sequence of characters.
instance methods
Methods that can only be invoked on a specific instance of a class.
substring method
Returns a substring from the specified beginIndex to endIndex.
parseInt method
Converts a string to an integer.
printf
A method used to format and display output in Java.
%d format specifier
Specifies that the output is a decimal integer.
%f format specifier
Specifies that the output is a floating-point number.