Question: write java code using java swing : 1) Lorem Ipsum is simply dummy text of the printing and typesetting industry, however sometimes you need to

write java code using java swing :

1) Lorem Ipsum is simply dummy text of the printing and typesetting industry, however sometimes you need to find the one piece of useful information in a sea of randomness. Write a program that reads in the following file:

(https://raw.githubusercontent.com/cosc1047w18/course/master/Lab5/lorem.txt)

and looks for the word pizza (without quotes). When it finds the word it should print a message saying which line it found it at

2) Write a program that will take an input file which contains users and their favourite colours (https://raw.githubusercontent.com/cosc1047w18/course/master/Lab5/namecolours.txt)

based on the input file it will find all of the users who have the favourite colour Red. It will then create a file called output.txt which will resemble the following:

The following users like red: Jim Jen Kelly Adam.

and then Extend the program in question two to handle all the colours in the list, for example

The following users like blue:

Mike Neil James Joe

The following users like red: Jim Jen Kelly Adam

The following users like Purple

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!