1/19
These flashcards cover fundamental concepts and methods related to mathematical functions, characters, and strings in Java programming.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Math class
A class in Java that provides methods for performing common mathematical functions.
Trigonometric Methods
Methods in the Math class that include sin(), cos(), tan(), and their inverses.
Exponent Methods
Methods in the Math class that include exp() for e^x, log() for natural logarithm, and pow() for exponentiation.
Rounding Methods
Methods used to round numbers, including ceil(), floor(), rint(), and round().
ASCII
A character encoding standard for electronic communication that represents text in computers as numbers.
Unicode
A character encoding standard that allows for the representation of text in multiple languages with a wide array of characters.
Escape Sequences
Character sequences that represent certain special characters, such as \n for line feed and \t for tab.
String type
A reference type in Java used to represent a sequence of characters.
instance methods
Methods that require an object instance of a class to be invoked.
Static methods
Methods that can be called on a class itself without needing an instance of the class.
String concatenation
The operation of joining two or more strings together using the + operator or concat() method.
indexOf method
A method used to find the index of the first occurrence of a character or substring in a string.
substring method
A method that returns a portion of the string based on specified start and end indices.
printf method
A method used to format output according to specified format specifiers.
text blocks
A feature that allows for easy creation of multi-line strings in Java.
stripIndent method
A method that removes the maximum common left space from a multi-line string.
trim method
A method that removes white space from both ends of a string.
equals method
A method that compares two strings for equality, taking case into account.
compareTo method
A method that compares two strings lexicographically.
Scanner class
A class in Java used to read input from various sources, such as user input from the console.