Question: Java: Prompt the user for two years. Print all the movies that were released in those years and that have a name that's fewer than

Java: Prompt the user for two years. Print all the movies that were released in those years and that have a name that's fewer than 6 characters.

Given:

db.txt

Standard Input:

1970

1974

Required Output:

Movie search by year range. Enter two years. Movies with short names that were released between 1970 and 1974 I dag Izumi Jamie Jamie Julie Julie Kako Kako Kate Kojak Kojak Kojak Kojak Kojak Leeds Maude Meshi Mily Nakia Nakia Nakia Nakia Nancy Nanou Tang Them Timo Toma Toma Toma Toma Totte Trial UFO UFO Yak Yak Zoom Zut! Number of matches: 39 

Not sure how to upload the file but db.txt consists of name, year, genre:

House of Games 2004 Family House of Games 2004 Game-Show House of Glam 2010 Reality-TV House of Horrors 1998 Documentary House of Jazmin 2009 Comedy House of Jazmin 2009 Documentary House of Jazmin 2009 Reality-TV House of Levy 2010 Reality-TV House of Lies 2012 Comedy House of Micky 2009 Comedy House of Mouse 2001 Animation House of Mouse 2001 Comedy House of Mouse 2001 Family House of Noise 1998 Reality-TV House of Payne 2006 Comedy House of Payne 2006 Drama House of Payne 2006 Family House of Payne 2006 Romance House of Pop 2000 Music House of Pride 1974 Drama House of Rock 2000 Animation House of Rock 2000 Comedy House of Rock 2000 Music

etc...

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!