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

UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 

Recently uploaded (20)

Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 

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); } }