Primitive Types, Strings, and Console I/O

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/10

flashcard set

Earn XP

Description and Tags

Flashcards based on key concepts from the Unit on Primitive Types, Strings, and Console I/O in Object-Oriented Programming.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

11 Terms

1
New cards

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.

2
New cards

abs(num)

Returns the absolute value of a numerical value.

3
New cards

random()

Returns a double value that is greater than or equal to 0.0 and less than 1.0.

4
New cards

DecimalFormat

A class in Java used to format decimal numbers into a specified pattern.

5
New cards

String Class

A class in Java used to create and manipulate strings, which are sequences of characters.

6
New cards

length()

A method that returns the size of the String object.

7
New cards

equals(Other_String)

A method that returns true if the calling String object and Other_String are equal; otherwise returns false.

8
New cards

toLowerCase()

A method that returns a string with all characters converted to lowercase.

9
New cards

toUpperCase()

A method that returns a string with all characters converted to uppercase.

10
New cards

indexOf(A_String)

A method that returns the position of the first occurrence of A_String in the calling String.

11
New cards

startsWith(String prefix)

A method that returns true if the String starts with the given prefix.