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..
She's receiving it. That means Matthew used her public key to encrypt it. She should decrypt it using her private key. Watch this video for clarification :)
Watch The Internet: Encryption & Public Keys on the big video site which cannot be named on brainly :p
Q1: 1. Go into the bathroom 2. Put toothpaste on the toothbrush 3. Place head of toothbrush on your teeth 4. Revolve in small circles 5. Repeat 4 for all of your teeth 6. Use water to wash away the toothpaste in you mouth