1/17
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
String concatenations
Suppose we have two strings in separate. We want these two strings to be concatenated in one. For this, we can simply use the traditional one (the + operator).
toLowerCase() and toUpperCase()
We can change the case of the string whenever required by using this Java built-in functions.
Contain()
We have this method in Java to deal with the checking of the string inside a string. We can use this function to check with some sequence of characters in a defined string. We can also use the substring() of Java.
indexOf()
Finding a Character in a String - This method returns the index (the position) of the first occurrence of a specified text in a string (including whitespace).
parse()
In its most general sense is the extraction of the necessary information from some piece of data, most often textual data. This method receives some string as input, "extracts" the necessary information from it and converts it into an object of the calling class.
parseInt()
This Java method is used to get the primitive datatype from a specific string. In other words, it converts a string to a number.
parseDouble()
This method of Java class returns anew double value that is initialized to the value corresponding to defined String.
trim()
Cleaning the string with the unwanted character: For this, we can use this Java function. This function can be used to remove the space from the beginning and the end of the given string.
Array Index
A numerical value that represents the position of an element within an array.
0
Array indexes always start with ________.
Array
This is used to store multiple values in a single variable, instead of declaring separate variables for each value.
Array element
An individual value stored within an array.
Square brackets
To declare an array, define the variable type with
length
To find out how many elements an array has, use the ______ property.
Index number
To change the value of a specific element, you must refer to the _________.
Multidimensional array
This is an array that contains other arrays.
.toString()
Returns a string representation of the contents of the specified array. The string representation consists of a list of the array’s elements, enclosed in square brackets (“[]”)
.deepToString()
Method of Java Arrays class is designed for converting multidimensional arrays to strings