1/10
Flashcards based on key concepts from the Unit on Primitive Types, Strings, and Console I/O in Object-Oriented Programming.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Math Class
A set of integrated mathematical operators in Java that includes methods for performing numeric procedures like exponential, logarithm, square root, and trigonometric functions.
abs(num)
Returns the absolute value of a numerical value.
random()
Returns a double value that is greater than or equal to 0.0 and less than 1.0.
DecimalFormat
A class in Java used to format decimal numbers into a specified pattern.
String Class
A class in Java used to create and manipulate strings, which are sequences of characters.
length()
A method that returns the size of the String object.
equals(Other_String)
A method that returns true if the calling String object and Other_String are equal; otherwise returns false.
toLowerCase()
A method that returns a string with all characters converted to lowercase.
toUpperCase()
A method that returns a string with all characters converted to uppercase.
indexOf(A_String)
A method that returns the position of the first occurrence of A_String in the calling String.
startsWith(String prefix)
A method that returns true if the String starts with the given prefix.