This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Rust Web Development and have Bastian Gruber on-line!
See this thread for details.
Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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: 74627
335
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic