• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sort Excel and paste it on webpage using Java

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


This is the excel sheet which is to be sorted and here I am stuck because I need to search "Type" if the country column from excel is uk or us.I am new to java and apache poi . I am stuck here . Please help . I have written the above code and everytime it gives me "single" as output and keep on searching that in google.I badly need help here.
Sale.JPG
[Thumbnail for Sale.JPG]
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch

POI is too difficult for “beginning” so I shall move this discussion.
 
sarita oberoi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sure..
But I need help here

Campbell Ritchie wrote:Welcome to the Ranch

POI is too difficult for “beginning” so I shall move this discussion.

 
Rancher
Posts: 4801
50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


According to this you are looping a number of times equal to the number of rows in your sheet.
You are then , each time, getting row 5, printing cell 5, and running a test using cell 4.

I'm guessing a bit, but presumably you should be changing the row you are checking.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic