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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started