FoP Quiz String Manipulations and Java Arrays

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

18 Terms

1
New cards

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).

2
New cards

toLowerCase() and toUpperCase()

We can change the case of the string whenever required by using this Java built-in functions.

3
New cards

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.​

4
New cards

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).​

5
New cards

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. ​

6
New cards

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.

7
New cards

parseDouble​()

This method of Java class returns anew double value that is initialized to the value corresponding to defined String.

8
New cards

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.

9
New cards

Array Index

A numerical value that represents the position of an element within an array.

10
New cards

0

Array indexes always start with ________.

11
New cards

Array

This is used to store multiple values in a single variable, instead of declaring separate variables for each value.

12
New cards

Array element

An individual value stored within an array.

13
New cards

Square brackets

To declare an array, define the variable type with

14
New cards

length

To find out how many elements an array has, use the ______ property.

15
New cards

Index number

To change the value of a specific element, you must refer to the _________.

16
New cards

Multidimensional array

This is an array that contains other arrays.

17
New cards

.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 (“[]”)

18
New cards

.deepToString()

Method of Java Arrays class is designed for converting multidimensional arrays to strings