SlideShare a Scribd company logo
1 of 2
Follow the instructions and write the java code please
Access a website of your choice with a comparison chart or any table of information.
Input: Name or any string to search for in a row.
Output: Description or another information about the given name in the same row
For example, in this website: http://www.tabletpccomparison.net/
Sample input (name): Microsoft Surface Pro 3
Sample Output(OS): Win 8.1 Pro
OR
Sample input (name): Sony Xperia Z2
Sample Output(OS): Android 4.4
Here's a list of more websites:
http://www.tabletpccomparison.net
http://www.ign.com/wikis/xbox-one/PS4_vs._Xbox_One_vs._Wii_U_Comparison_Chart
http://eartheasy.com/live_led_bulbs_comparison.html
http://ipod.about.com/od/ipodcomparisonchart/a/ipod_comparison.htm
http://www.religionfacts.com/big_religion_chart.htm
Solution
import java.util.Scanner;
/**
*
* @author prmsh
*/
public class ReadWebsite {
public static void main(String args[]) throws MalformedURLException, IOException {
// stroring URL
String url = "http://www.tabletpccomparison.net/ ";
Parser parser = new Parser(url);
NodeList movies = parser.extractAllNodesThatMatch(
new AndFilter(new TagNameFilter("table"),
new HasAttributeFilter("class", "tableJX2 tableJX")));
Scanner sc = new Scanner(System.in);
System.out.println("Enter input(name): ");
String input = sc.nextLine();
String result = movies.find(input);
System.out.println("Result: "+result);
}
}

More Related Content

Similar to Follow the instructions and write the java code please Access a websit.docx

Developing Cross Platform Applications with Golang
Developing Cross Platform Applications with GolangDeveloping Cross Platform Applications with Golang
Developing Cross Platform Applications with GolangErhan Yakut
 
Lecture 4 display_principles
Lecture 4 display_principlesLecture 4 display_principles
Lecture 4 display_principlesmoduledesign
 
Page 3 of 11Delete this text and type your name here This .docx
Page 3 of 11Delete this text and type your name here This .docxPage 3 of 11Delete this text and type your name here This .docx
Page 3 of 11Delete this text and type your name here This .docxalfred4lewis58146
 
Lecture 4 display_principles
Lecture 4 display_principlesLecture 4 display_principles
Lecture 4 display_principlesmoduledesign
 
Gaming with Open Source Frameworks
Gaming with Open Source FrameworksGaming with Open Source Frameworks
Gaming with Open Source FrameworksAlmog Koren
 
Designing the Call of Cthulhu app with Google App Engine
Designing the Call of Cthulhu app with Google App EngineDesigning the Call of Cthulhu app with Google App Engine
Designing the Call of Cthulhu app with Google App EngineChris Bunch
 
How to submit to Windows Phone Marketplace
How to submit to Windows Phone MarketplaceHow to submit to Windows Phone Marketplace
How to submit to Windows Phone MarketplaceMalin De Silva
 
I phone app develoment ppt
I phone app develoment   pptI phone app develoment   ppt
I phone app develoment pptsagaroceanic11
 
I phone app develoment ppt
I phone app develoment   pptI phone app develoment   ppt
I phone app develoment pptsagaroceanic11
 
Porting unity games to windows - London Unity User Group
Porting unity games to windows - London Unity User GroupPorting unity games to windows - London Unity User Group
Porting unity games to windows - London Unity User GroupLee Stott
 
Windows und Windows Phone App Entwicklung (Daniel Meixner, DWX 2014)
Windows und Windows Phone App Entwicklung (Daniel Meixner, DWX 2014)Windows und Windows Phone App Entwicklung (Daniel Meixner, DWX 2014)
Windows und Windows Phone App Entwicklung (Daniel Meixner, DWX 2014)Daniel Meixner
 
Hello windows 10: An overview of the new features for developers in WIndows 10
Hello windows 10: An overview of the new features for developers in WIndows 10Hello windows 10: An overview of the new features for developers in WIndows 10
Hello windows 10: An overview of the new features for developers in WIndows 10Visug
 
How to leverage APIs & Scrapers in App Store Optimization
How to leverage APIs & Scrapers in App Store OptimizationHow to leverage APIs & Scrapers in App Store Optimization
How to leverage APIs & Scrapers in App Store OptimizationRomain Golfier
 
데브멘토 발표세미나
데브멘토 발표세미나데브멘토 발표세미나
데브멘토 발표세미나Seo Jinho
 
Y1 gd engine_terminology
Y1 gd engine_terminologyY1 gd engine_terminology
Y1 gd engine_terminologykieranowens1997
 
Using MySQL in a web-scale environment
Using MySQL in a web-scale environmentUsing MySQL in a web-scale environment
Using MySQL in a web-scale environmentDavid Landgren
 
Chapter9 and10
Chapter9 and10Chapter9 and10
Chapter9 and10Saurav
 
Chapter9and10
Chapter9and10Chapter9and10
Chapter9and10Saurav
 
Optimizing device and test coverage webinar
Optimizing device and test coverage webinarOptimizing device and test coverage webinar
Optimizing device and test coverage webinarpCloudy
 

Similar to Follow the instructions and write the java code please Access a websit.docx (20)

Developing Cross Platform Applications with Golang
Developing Cross Platform Applications with GolangDeveloping Cross Platform Applications with Golang
Developing Cross Platform Applications with Golang
 
Lecture 4 display_principles
Lecture 4 display_principlesLecture 4 display_principles
Lecture 4 display_principles
 
Page 3 of 11Delete this text and type your name here This .docx
Page 3 of 11Delete this text and type your name here This .docxPage 3 of 11Delete this text and type your name here This .docx
Page 3 of 11Delete this text and type your name here This .docx
 
Lecture 4 display_principles
Lecture 4 display_principlesLecture 4 display_principles
Lecture 4 display_principles
 
Gaming with Open Source Frameworks
Gaming with Open Source FrameworksGaming with Open Source Frameworks
Gaming with Open Source Frameworks
 
Designing the Call of Cthulhu app with Google App Engine
Designing the Call of Cthulhu app with Google App EngineDesigning the Call of Cthulhu app with Google App Engine
Designing the Call of Cthulhu app with Google App Engine
 
How to submit to Windows Phone Marketplace
How to submit to Windows Phone MarketplaceHow to submit to Windows Phone Marketplace
How to submit to Windows Phone Marketplace
 
I phone app develoment ppt
I phone app develoment   pptI phone app develoment   ppt
I phone app develoment ppt
 
I phone app develoment ppt
I phone app develoment   pptI phone app develoment   ppt
I phone app develoment ppt
 
Porting unity games to windows - London Unity User Group
Porting unity games to windows - London Unity User GroupPorting unity games to windows - London Unity User Group
Porting unity games to windows - London Unity User Group
 
Windows und Windows Phone App Entwicklung (Daniel Meixner, DWX 2014)
Windows und Windows Phone App Entwicklung (Daniel Meixner, DWX 2014)Windows und Windows Phone App Entwicklung (Daniel Meixner, DWX 2014)
Windows und Windows Phone App Entwicklung (Daniel Meixner, DWX 2014)
 
Hello windows 10: An overview of the new features for developers in WIndows 10
Hello windows 10: An overview of the new features for developers in WIndows 10Hello windows 10: An overview of the new features for developers in WIndows 10
Hello windows 10: An overview of the new features for developers in WIndows 10
 
Hello windows 10
Hello windows 10Hello windows 10
Hello windows 10
 
How to leverage APIs & Scrapers in App Store Optimization
How to leverage APIs & Scrapers in App Store OptimizationHow to leverage APIs & Scrapers in App Store Optimization
How to leverage APIs & Scrapers in App Store Optimization
 
데브멘토 발표세미나
데브멘토 발표세미나데브멘토 발표세미나
데브멘토 발표세미나
 
Y1 gd engine_terminology
Y1 gd engine_terminologyY1 gd engine_terminology
Y1 gd engine_terminology
 
Using MySQL in a web-scale environment
Using MySQL in a web-scale environmentUsing MySQL in a web-scale environment
Using MySQL in a web-scale environment
 
Chapter9 and10
Chapter9 and10Chapter9 and10
Chapter9 and10
 
Chapter9and10
Chapter9and10Chapter9and10
Chapter9and10
 
Optimizing device and test coverage webinar
Optimizing device and test coverage webinarOptimizing device and test coverage webinar
Optimizing device and test coverage webinar
 

More from edmundp8cgllams

For this Assignment- submit the following program- The following code.docx
For this Assignment- submit the following program- The following code.docxFor this Assignment- submit the following program- The following code.docx
For this Assignment- submit the following program- The following code.docxedmundp8cgllams
 
For the year ended December 31- 2014- a company- reported the followin.docx
For the year ended December 31- 2014- a company- reported the followin.docxFor the year ended December 31- 2014- a company- reported the followin.docx
For the year ended December 31- 2014- a company- reported the followin.docxedmundp8cgllams
 
For the accompanying inquiries enter the answer and give complete expl.docx
For the accompanying inquiries enter the answer and give complete expl.docxFor the accompanying inquiries enter the answer and give complete expl.docx
For the accompanying inquiries enter the answer and give complete expl.docxedmundp8cgllams
 
Financial managers must understand variance between budgeted expectati.docx
Financial managers must understand variance between budgeted expectati.docxFinancial managers must understand variance between budgeted expectati.docx
Financial managers must understand variance between budgeted expectati.docxedmundp8cgllams
 
Find the domain of the function-.docx
Find the domain of the function-.docxFind the domain of the function-.docx
Find the domain of the function-.docxedmundp8cgllams
 
Financial instruments are assets that have a monetary value or record.docx
Financial instruments are assets that have a monetary value or record.docxFinancial instruments are assets that have a monetary value or record.docx
Financial instruments are assets that have a monetary value or record.docxedmundp8cgllams
 
Fischer esterification and hydrolysis lab Salicylic acid was mixed wit.docx
Fischer esterification and hydrolysis lab Salicylic acid was mixed wit.docxFischer esterification and hydrolysis lab Salicylic acid was mixed wit.docx
Fischer esterification and hydrolysis lab Salicylic acid was mixed wit.docxedmundp8cgllams
 
Financing activities involve- issuing debt- acquiring long-term assets.docx
Financing activities involve- issuing debt- acquiring long-term assets.docxFinancing activities involve- issuing debt- acquiring long-term assets.docx
Financing activities involve- issuing debt- acquiring long-term assets.docxedmundp8cgllams
 
Financial information for Ernie Bishop Company is presented below- ERN.docx
Financial information for Ernie Bishop Company is presented below- ERN.docxFinancial information for Ernie Bishop Company is presented below- ERN.docx
Financial information for Ernie Bishop Company is presented below- ERN.docxedmundp8cgllams
 
Ferritin oxidizes Fe2+ to Fe3+ before mineralizing the iron in the fer.docx
Ferritin oxidizes Fe2+ to Fe3+ before mineralizing the iron in the fer.docxFerritin oxidizes Fe2+ to Fe3+ before mineralizing the iron in the fer.docx
Ferritin oxidizes Fe2+ to Fe3+ before mineralizing the iron in the fer.docxedmundp8cgllams
 

More from edmundp8cgllams (10)

For this Assignment- submit the following program- The following code.docx
For this Assignment- submit the following program- The following code.docxFor this Assignment- submit the following program- The following code.docx
For this Assignment- submit the following program- The following code.docx
 
For the year ended December 31- 2014- a company- reported the followin.docx
For the year ended December 31- 2014- a company- reported the followin.docxFor the year ended December 31- 2014- a company- reported the followin.docx
For the year ended December 31- 2014- a company- reported the followin.docx
 
For the accompanying inquiries enter the answer and give complete expl.docx
For the accompanying inquiries enter the answer and give complete expl.docxFor the accompanying inquiries enter the answer and give complete expl.docx
For the accompanying inquiries enter the answer and give complete expl.docx
 
Financial managers must understand variance between budgeted expectati.docx
Financial managers must understand variance between budgeted expectati.docxFinancial managers must understand variance between budgeted expectati.docx
Financial managers must understand variance between budgeted expectati.docx
 
Find the domain of the function-.docx
Find the domain of the function-.docxFind the domain of the function-.docx
Find the domain of the function-.docx
 
Financial instruments are assets that have a monetary value or record.docx
Financial instruments are assets that have a monetary value or record.docxFinancial instruments are assets that have a monetary value or record.docx
Financial instruments are assets that have a monetary value or record.docx
 
Fischer esterification and hydrolysis lab Salicylic acid was mixed wit.docx
Fischer esterification and hydrolysis lab Salicylic acid was mixed wit.docxFischer esterification and hydrolysis lab Salicylic acid was mixed wit.docx
Fischer esterification and hydrolysis lab Salicylic acid was mixed wit.docx
 
Financing activities involve- issuing debt- acquiring long-term assets.docx
Financing activities involve- issuing debt- acquiring long-term assets.docxFinancing activities involve- issuing debt- acquiring long-term assets.docx
Financing activities involve- issuing debt- acquiring long-term assets.docx
 
Financial information for Ernie Bishop Company is presented below- ERN.docx
Financial information for Ernie Bishop Company is presented below- ERN.docxFinancial information for Ernie Bishop Company is presented below- ERN.docx
Financial information for Ernie Bishop Company is presented below- ERN.docx
 
Ferritin oxidizes Fe2+ to Fe3+ before mineralizing the iron in the fer.docx
Ferritin oxidizes Fe2+ to Fe3+ before mineralizing the iron in the fer.docxFerritin oxidizes Fe2+ to Fe3+ before mineralizing the iron in the fer.docx
Ferritin oxidizes Fe2+ to Fe3+ before mineralizing the iron in the fer.docx
 

Recently uploaded

INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfbu07226
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Celine George
 
An Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxAn Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxCeline George
 
Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxjmorse8
 
ppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesashishpaul799
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the lifeNitinDeodare
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesRased Khan
 
How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17Celine George
 
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptxREPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptxmanishaJyala2
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45MysoreMuleSoftMeetup
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...Nguyen Thanh Tu Collection
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Celine George
 
Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Mohamed Rizk Khodair
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryEugene Lysak
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽中 央社
 
Essential Safety precautions during monsoon season
Essential Safety precautions during monsoon seasonEssential Safety precautions during monsoon season
Essential Safety precautions during monsoon seasonMayur Khatri
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...Nguyen Thanh Tu Collection
 
Open Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointOpen Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointELaRue0
 

Recently uploaded (20)

INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
 
An Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxAn Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptx
 
Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptx
 
ppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyes
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the life
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 
Word Stress rules esl .pptx
Word Stress rules esl               .pptxWord Stress rules esl               .pptx
Word Stress rules esl .pptx
 
How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17
 
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptxREPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
 
Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. Henry
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
Essential Safety precautions during monsoon season
Essential Safety precautions during monsoon seasonEssential Safety precautions during monsoon season
Essential Safety precautions during monsoon season
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
 
Open Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointOpen Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPoint
 
“O BEIJO” EM ARTE .
“O BEIJO” EM ARTE                       .“O BEIJO” EM ARTE                       .
“O BEIJO” EM ARTE .
 

Follow the instructions and write the java code please Access a websit.docx

  • 1. Follow the instructions and write the java code please Access a website of your choice with a comparison chart or any table of information. Input: Name or any string to search for in a row. Output: Description or another information about the given name in the same row For example, in this website: http://www.tabletpccomparison.net/ Sample input (name): Microsoft Surface Pro 3 Sample Output(OS): Win 8.1 Pro OR Sample input (name): Sony Xperia Z2 Sample Output(OS): Android 4.4 Here's a list of more websites: http://www.tabletpccomparison.net http://www.ign.com/wikis/xbox-one/PS4_vs._Xbox_One_vs._Wii_U_Comparison_Chart http://eartheasy.com/live_led_bulbs_comparison.html http://ipod.about.com/od/ipodcomparisonchart/a/ipod_comparison.htm http://www.religionfacts.com/big_religion_chart.htm Solution import java.util.Scanner;
  • 2. /** * * @author prmsh */ public class ReadWebsite { public static void main(String args[]) throws MalformedURLException, IOException { // stroring URL String url = "http://www.tabletpccomparison.net/ "; Parser parser = new Parser(url); NodeList movies = parser.extractAllNodesThatMatch( new AndFilter(new TagNameFilter("table"), new HasAttributeFilter("class", "tableJX2 tableJX"))); Scanner sc = new Scanner(System.in); System.out.println("Enter input(name): "); String input = sc.nextLine(); String result = movies.find(input); System.out.println("Result: "+result); } }