subject

What is the output of this program?
class output
{
public static void main(string args[])
{ string a = "hello i love java"; system. out. println(a. indexof('i')+" "+a. indexof('o')+" "+a. lastindexof('i')+" "+a. lastindexof('o'));
}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 01:10
Create a program that will take in a single x and y coordinate as the origin. after the input is provided, the output should be all of the coordinates (all 26 coordinates read from the “coordinates.json” file), in order of closest-to-farthest from the origin.
Answers: 1
question
Computers and Technology, 24.06.2019 22:30
In writing a paper for his english class, gavin quoted an author of the book. what should he include in his paper to credit the source? citation caption header entry
Answers: 1
question
Computers and Technology, 24.06.2019 23:00
Hypertension occurs when blood pressure is too high.
Answers: 1
question
Computers and Technology, 25.06.2019 03:30
Kou converged his word document to a powerpoint document. when he received the powerpoint, he was missing material. which most likely explains why the material was missing? a it did not have a proper heading b he incorrectly copied and pasted it c he did not save his document properly d there was not enough space in powerpoint
Answers: 1
You know the right answer?
What is the output of this program?
class output
{
public static void main(stri...
Questions
question
History, 09.12.2019 11:31
question
Mathematics, 09.12.2019 11:31
question
History, 09.12.2019 11:31
question
Mathematics, 09.12.2019 11:31