Online Hibernate Training just in Rs. 1000

One week online training in Hibernate ORM framework. Learn Hibernate Framework and enhance your skills. Best Online Hibernate training at 90% discount. Join Now!! Offer is valid Only for limited Period!!! Online Training Big Data and Hadoop Training Java Training  
 

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

Ads

 
 

Share on Google+Share on Google+

Charmaine Waggay
how to sort the result of this 2 class program in java.....????
0 Answer(s)      5 years and 7 months ago
Posted in : Java Interview Questions

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; } }

Ads
View Answers
Ads









Related Tutorials/Questions & Answers:
Advertisements