This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Problem in extracting tables from a web page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Problem in extracting tables from a web page" Watch "Problem in extracting tables from a web page" New topic
Author

Problem in extracting tables from a web page

Rashmi Raju
Greenhorn

Joined: Apr 24, 2008
Posts: 4
Hi everyone.....
My code goes as below

My probelem is it extracts all the tables and displays it....
and prints the max width and max height value at the end....
Can anybody please help me to display only the table with max height and max width. it should not display any other tables.........
plaese help me correct this code

[ UD: Please UseCodeTags when posting code fo any length. ]
[ April 25, 2008: Message edited by: Ulf Dittmer ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41034
    
  43
One thing that jumps out is that you're using compareTo for comparing strings that are essentially integers. That won't work, because "20" > "100", as far as String.compareTo is concerned. You can convert strings to integers using Integer.parseInt.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in extracting tables from a web page
 
Similar Threads
Finding the largest table ina web page and displaying it
: A gray color box appeare d when loading an image on JPanel
Regular expression - Pattern and matcher
Display tables from web page
Please Help -Problem in Regular Expressions