how to sort the result of this 2 class program in java.....????

package setget1_method; import java.util.Scanner; public class Main {

{

{ Scanner input = new Scanner(System.in); LBook[] book = new LBook[5]; String title, author; int numPages, ctr; for(ctr =0; ctr

package setget1_method; class LBook { private String title; private String author; private int pageCount; public void setTitle(String j) { title = j; } public void setAuthor(String o) { author = o; } public void setPageCount(int count) { pageCount = count; } public String getTitle() { return title; } public String getAuthor() { return author; } public int getPageCount() { return pageCount; } }

View Answers









Related Tutorials/Questions & Answers:
Advertisements