Java Programming and Data Structures

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

1/14

flashcard set

Earn XP

Description and Tags

These flashcards cover key concepts in Java programming related to mathematical functions, characters, strings, and formatting output.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

15 Terms

1
New cards

Math Class

A class in Java that provides methods for performing common mathematical functions.

2
New cards

Exponent Methods

Methods such as exp, log, and pow that deal with exponential operations.

3
New cards

ceil method

Rounds a double value up to the nearest integer.

4
New cards

floor method

Rounds a double value down to the nearest integer.

5
New cards

abs method

Returns the absolute value of a given parameter.

6
New cards

random method

Generates a random double value in the range [0.0, 1.0).

7
New cards

Unicode

A 16-bit encoding scheme to represent written texts in diverse languages.

8
New cards

Character Class Methods

Methods that allow testing and converting characters such as isDigit, isLetter, isUpperCase.

9
New cards

String Type

A reference type in Java used to represent a sequence of characters.

10
New cards

instance methods

Methods that can only be invoked on a specific instance of a class.

11
New cards

substring method

Returns a substring from the specified beginIndex to endIndex.

12
New cards

parseInt method

Converts a string to an integer.

13
New cards

printf

A method used to format and display output in Java.

14
New cards

%d format specifier

Specifies that the output is a decimal integer.

15
New cards

%f format specifier

Specifies that the output is a floating-point number.