1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
german
3 years ago
9

What method of the String object searches the string for an occurence of the specified search string?

Computers and Technology
1 answer:
KATRIN_1 [288]3 years ago
3 0

Answer:

the indexOf() method

Explanation:

The indexOf() method in java returns the first occurrence of the of the string or a character specified in it.It can be used to search both a character or a string.

for example:-

import java.util.*;

import java.lang.*;

import java.io.*;

class indexOf

{

public static void main (String[] args)

{

    String s="IamNumber4";

    int l=s.indexOf("Num");//using indexOf() method on string object..

    System.out.println(l);

}

}

Output:-

3

You might be interested in
0 Select the correct answer. Which is an advantage of programming with a procedural language? A. Procedural program code is easy
Novosadov [1.4K]

Answer:

D. Algorithms of simple problems are readily available for reference. ​

Explanation:

Hope this helps you! Ask me anything if you have any quistions!

7 0
3 years ago
The security administrator for Corp wants to provide wireless access for employees as well as guests. Multiple wireless access p
Artemon [7]
It’s B I took the test
7 0
4 years ago
In this chapter, we use the metaphor of a blueprint and houses that are createdfrom the blueprint to describe classes and object
Pachacha [2.7K]

Answer:

The correct answer to the following question will be Classes.

Explanation:

Class:

  • Class and objects are the two basic concepts of Object-oriented programming language (Oops).
  • A prototype by which an object can be created.
  • A Class is a collection of data members and member functions.
  • A Class is a user-defined blueprint on an object.
  • Declaration of a class includes: Class names, modifiers, Super class, interfaces and body
8 0
3 years ago
Why do computers need system software?
Marina86 [1]
<span>Computers don't need system software. System software is used to automate many tasks so the user can achieve more. Actually, one of the ideas of computer programming is to avoid needless repetition. The system software will prepare the computer for the user.</span>
5 0
3 years ago
What aspect should you consider before adding pictures to a document? You should structure the (blank) first before you search f
Evgesh-ka [11]
I would be considering type of files that do not take up a lot of space, especially if you plan to email them
7 0
4 years ago
Other questions:
  • 1. The graphical representation of the users character of alter ego is their:
    11·1 answer
  • The unique global address for a web page or other resource on the internet is called the ________.
    7·1 answer
  • As the network engineer, you are asked to design an IP subnet plan that calls for three subnets. The largest subnet needs a mini
    14·1 answer
  • your computer running Windows 10 is doing some very strange things with operating system you are fairly certain it is not a hard
    13·2 answers
  • The analysts at Techno Info Systems are considering the four-model approach to system development for a new client. If they make
    9·1 answer
  • Why does the IPv6 format use letters and numbers?
    12·1 answer
  • Consider this binary search tree:______.
    12·1 answer
  • In Secure Electronic Transaction, the purpose of Dual Signature is to link two messages that are intended for two different reci
    5·1 answer
  • The User Datagram Protocol (UDP) is called the connectionless protocol because: It does not attempt to fix bad packets but resen
    8·1 answer
  • Convertbinary(111100)to decimal​​​​
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!