Skip to main content

Command Palette

Search for a command to run...

Basic Operations

Updated
1 min readView as Markdown
M

I am a developer

A couple of basic operations in Java will help you solve these questions.

  • contains() method

  • String.valueOf() method

  • To use ArrayList

Methods

contains()

When we look at the String.java class, we can see its implementation.

To understand this we also need to know indexOf() method's implementation.

There is something used as 'value'. It was defined at the beginning of the class:

Leetcode Array

Part 1 of 1

Basic array algorithm questions from Leetcode