Array of Objects
Array of Objects
Array of Objects
Scanner;
class Book
{
String name;
int id;
Boolean check( String
bname)
{
boolean result = false;
if(name.equals(bname))
{
System.out.println("yes");
result = true;
}
else
{
System.out.println("No");
result = false;
}
return result;}
public static void main(String
args[])
{Scanner in = new
Scanner(System.in);
String ch="B";