/ Looks up author of selected books
import java. util.*;
class DebugNine1
{
publi...
Computers and Technology, 16.10.2020 06:01 anna2894
/ Looks up author of selected books
import java. util.*;
class DebugNine1
{
public static void main(String[] args)
{
Scanner input = new Scanner(System. in);
String[][] books = new String[6][2];
books[0][0] = "Ulysses";
books[0][1] = "James Joyce";
books[1][0] = "Lolita"
books[1][1] = "Vladimir Nabokov";
books[2][1] = "Huckleberry Finn";
books[2][1] = "Mark Twain";
books[3][0] = "Great Gatsby";
books[3][2] = "F. Scott Fitzgerald";
books[4][0] = "1984";
books[4][1] = "George Orwell";
books[5][5] = "Sound and the Fury";
books[5][1] = "William Faulkner";
String entry,
shortEntry,
message ="Enter the first three characters of a book title omitting \"A\" or \"The\" ";
int num, x;
boolean isFound = true;
while(!isFound)
{
System. out. println(message);
entry = input. next();
shortEntry = entry. substring(0,3);
for(x = 0; x < books. length; ++x)
if(books[x][0].startsWith(shortEntr y))
{
isFound = true;
System. out. println(books[x][x] + " was written by " + books[x][1]);
x = books. length;
}
if(isFound)
System. out. println("Sorry - no such book in our database);
}
}
}
Answers: 3
Computers and Technology, 22.06.2019 09:40
Sarah is having a hard time finding a template for her advertising business that she may be able to use at a later date and also make it available to her colleagues
Answers: 1
Computers and Technology, 22.06.2019 20:00
Awide variety of “ apps “ are available to customize devices. which category of app does the word processing software fall into?
Answers: 2
Computers and Technology, 24.06.2019 10:00
Which two technologies support the building of single-page applications?
Answers: 2
Computers and Technology, 24.06.2019 17:00
What are some examples of what can be changed through options available in the font dialog box? check all that apply. font family italicizing bolding pasting drop shadow cutting character spacing special symbols
Answers: 2
Biology, 21.05.2021 08:40
English, 21.05.2021 08:40
Mathematics, 21.05.2021 08:40
Mathematics, 21.05.2021 08:40
Mathematics, 21.05.2021 08:40
English, 21.05.2021 08:40
Mathematics, 21.05.2021 08:40
Mathematics, 21.05.2021 08:40
Biology, 21.05.2021 08:40
Mathematics, 21.05.2021 08:40
Health, 21.05.2021 08:40
Mathematics, 21.05.2021 08:40