i have a ResultSet method public ResultSet getItemPurchase(String Pid) which return a Data from a database table. similarly i have another method public Resultset getItemSale(String sid). i have called them using a function ResultSet rs1 = getItemPurchase(Pid); and next function is ResultSet rs2 = getItemSale(Pid);
i want to do as following.
1. while(rs1.next)
2. {
3. rs1.getString("Item");
4. if(rs1.getString("price")==rs2.getString("price")
5. {
6. //some code here
7. }
8. else{
9. rs1.getDate("Purchase Date");}
10. rs2.getString("CustomerName");
11. }
can anybody please help me on this