SlideShare a Scribd company logo
In java and based upon a .txt file please add the first FOUR lines for EACH student in the file into
an arraylist. The next few lines with course name, etc should be created into a course object (a
new object). Then then they should be added to an arraylist of type course. This code should also
check for white space to know when to move on to the next student in the file.
This is the txt file.
Michael West
900753
2003
TruE
Art Appreciation,1090,3,sync,T
Data Structures,2735,5,online,MWF
Calculus,1070,4,in-person,MTWF
Personal Finance,1070,3,online,TBD
Health Ethics,2080,3,async,TR
Festus Park
900846
2000
False
Art Appreciation,1090,3,sync,T
Intro to CS,1724,4,in-person,MWTF
Statistics,2010,3,Online,MWF
Personal Finance,1070,3,online,TBD
Africa and the World,2090,3,sync,WF
Ahmed Nord
900963
2004
true
Intro to Philosophy,1070,3,online,TR
Data Structures,2735,5,online,MWF
Intro to Tennis,1000,3,in-person,MWF
Personal Finance,1070,3,online,TBD
Health Ethics,2080,3,async,TR
Tasha Ohlder
900102
1994
true
Intro to Sociology,1010,3,async,MW
Data Structures,2735,5,online,MWF
Statistics,2020,4,online,MWRF
Personal Finance,1070,3,online,TBD
Intro to Theology,1080,3,async,WF
Earl Mint
900159
2003
false
Calculus,1070,4,online,MTWF
Intro to CS,1724,4,in-person,MWTF
Personal Finance,1070,3,online,TBD
Health Ethics,2080,3,async,TR
English Composition,2010,3,online,MWF
Katie Easton
900951
2000
false
Discrete Structs,2550,3,online,TR
Intro to CS,1724,4,in-person,MWTF
Intro to Karate,1040,3,in-person,MWF
Personal Finance,1070,3,online,TBD
Health Ethics,2080,3,async,TR
Kennedy Dotson
900237
1999
True
Intro to Philosophy,1070,3,online,TR
Data Structures,2735,5,online,MWF
Intro to Data Science,1070,4,in-person,MWF
Personal Finance,1070,3,online,TBD
Nick Peoples
900856
2001
False
Intro to Sociology,1010,3,online,MW
Intro to CS,1724,4,in-person,MWTF
Intro to Tennis,1000,3,in-person,MWF
Personal Finance,1070,3,online,TBD
Olivia Priest
900123
1999
True
Intro to Philosophy,1070,3,online,TR
Data Structures,2735,5,online,MWF
Intro to Data Science,1070,4,in-person,MWF
Macro Economics,2020,3,sync,TW
Personal Finance,1070,3,online,TBD
Rashad Black
900456
2001
False
Intro to Sociology,1010,3,online,MW
Intro to CS,1724,4,in-person,MWTF
Intro to Tennis,1000,3,in-person,MWF
Personal Finance,1070,3,online,TBD
How Things Work,1010,3,async,WF
For example, Michael West, 900753,2003, and true should be in the arraylist. that means festus
park, 900846, 2000, and false should also be in the arraylist. So the arraylist should have the first
four items from each student. So the next 5 or so lines should be split into an array and then
placed into a course object. Note each student does not have 5 classes so this cannot be
hardcoded. Also please do this in the simplest way possible. Use .hasNextLine, 4 .next() for each
students info, check for white space, use scanner, and a while loop to read through file. The
answer can be written out or typed. Thank you
This is the txt file.
Michael West
900753
2003
TruE
Art Appreciation,1090,3,sync,T
Data Structures,2735,5,online,MWF
Calculus,1070,4,in-person,MTWF
Personal Finance,1070,3,online,TBD
Health Ethics,2080,3,async,TR
Festus Park
900846
2000
False
Art Appreciation,1090,3,sync,T
Intro to CS,1724,4,in-person,MWTF
Statistics,2010,3,Online,MWF
Personal Finance,1070,3,online,TBD
Africa and the World,2090,3,sync,WF
Ahmed Nord
900963
2004
true
Intro to Philosophy,1070,3,online,TR
Data Structures,2735,5,online,MWF
Intro to Tennis,1000,3,in-person,MWF
Personal Finance,1070,3,online,TBD
Health Ethics,2080,3,async,TR
Tasha Ohlder
900102
1994
true
Intro to Sociology,1010,3,async,MW
Data Structures,2735,5,online,MWF
Statistics,2020,4,online,MWRF
Personal Finance,1070,3,online,TBD
Intro to Theology,1080,3,async,WF
Earl Mint
900159
2003
false
Calculus,1070,4,online,MTWF
Intro to CS,1724,4,in-person,MWTF
Personal Finance,1070,3,online,TBD
Health Ethics,2080,3,async,TR
English Composition,2010,3,online,MWF
Katie Easton
900951
2000
false
Discrete Structs,2550,3,online,TR
Intro to CS,1724,4,in-person,MWTF
Intro to Karate,1040,3,in-person,MWF
Personal Finance,1070,3,online,TBD
Health Ethics,2080,3,async,TR
Kennedy Dotson
900237
1999
True
Intro to Philosophy,1070,3,online,TR
Data Structures,2735,5,online,MWF
Intro to Data Science,1070,4,in-person,MWF
Personal Finance,1070,3,online,TBD
Nick Peoples
900856
2001
False
Intro to Sociology,1010,3,online,MW
Intro to CS,1724,4,in-person,MWTF
Intro to Tennis,1000,3,in-person,MWF
Personal Finance,1070,3,online,TBD
Olivia Priest
900123
1999
True
Intro to Philosophy,1070,3,online,TR
Data Structures,2735,5,online,MWF
Intro to Data Science,1070,4,in-person,MWF
Macro Economics,2020,3,sync,TW
Personal Finance,1070,3,online,TBD
Rashad Black
900456
2001
False
Intro to Sociology,1010,3,online,MW
Intro to CS,1724,4,in-person,MWTF
Intro to Tennis,1000,3,in-person,MWF
Personal Finance,1070,3,online,TBD
How Things Work,1010,3,async,WF
Michael West
900753
2003
TruE
Art Appreciation,1090,3,sync,T
Data Structures,2735,5,online,MWF
Calculus,1070,4,in-person,MTWF
Personal Finance,1070,3,online,TBD
Health Ethics,2080,3,async,TR
Festus Park
900846
2000
False
Art Appreciation,1090,3,sync,T
Intro to CS,1724,4,in-person,MWTF
Statistics,2010,3,Online,MWF
Personal Finance,1070,3,online,TBD
Africa and the World,2090,3,sync,WF
Ahmed Nord
900963
2004
true
Intro to Philosophy,1070,3,online,TR
Data Structures,2735,5,online,MWF
Intro to Tennis,1000,3,in-person,MWF
Personal Finance,1070,3,online,TBD
Health Ethics,2080,3,async,TR
Tasha Ohlder
900102
1994
true
Intro to Sociology,1010,3,async,MW
Data Structures,2735,5,online,MWF
Statistics,2020,4,online,MWRF
Personal Finance,1070,3,online,TBD
Intro to Theology,1080,3,async,WF
Earl Mint
900159
2003
false
Calculus,1070,4,online,MTWF
Intro to CS,1724,4,in-person,MWTF
Personal Finance,1070,3,online,TBD
Health Ethics,2080,3,async,TR
English Composition,2010,3,online,MWF
Katie Easton
900951
2000
false
Discrete Structs,2550,3,online,TR
Intro to CS,1724,4,in-person,MWTF
Intro to Karate,1040,3,in-person,MWF
Personal Finance,1070,3,online,TBD
Health Ethics,2080,3,async,TR
Kennedy Dotson
900237
1999
True
Intro to Philosophy,1070,3,online,TR
Data Structures,2735,5,online,MWF
Intro to Data Science,1070,4,in-person,MWF
Personal Finance,1070,3,online,TBD
Nick Peoples
900856
2001
False
Intro to Sociology,1010,3,online,MW
Intro to CS,1724,4,in-person,MWTF
Intro to Tennis,1000,3,in-person,MWF
Personal Finance,1070,3,online,TBD
Olivia Priest
900123
1999
True
Intro to Philosophy,1070,3,online,TR
Data Structures,2735,5,online,MWF
Intro to Data Science,1070,4,in-person,MWF
Macro Economics,2020,3,sync,TW
Personal Finance,1070,3,online,TBD
Rashad Black
900456
2001
False
Intro to Sociology,1010,3,online,MW
Intro to CS,1724,4,in-person,MWTF
Intro to Tennis,1000,3,in-person,MWF
Personal Finance,1070,3,online,TBD
How Things Work,1010,3,async,WF
For example, Michael West, 900753,2003, and true should be in the arraylist. that means festus
park, 900846, 2000, and false should also be in the arraylist. So the arraylist should have the first
four items from each student. So the next 5 or so lines should be split into an array and then
placed into a course object. Note each student does not have 5 classes so this cannot be
hardcoded. Also please do this in the simplest way possible. Use .hasNextLine, 4 .next() for each
students info, check for white space, use scanner, and a while loop to read through file. The
answer can be written out or typed. Thank you

More Related Content

More from abcfootcare

Is there a case study of a business that employed retained e.pdf
Is there a case study of a business that employed retained e.pdfIs there a case study of a business that employed retained e.pdf
Is there a case study of a business that employed retained e.pdf
abcfootcare
 
Cul es el tipo de cognicin que es evidente en el nio en .pdf
Cul es el tipo de cognicin que es evidente en el nio en .pdfCul es el tipo de cognicin que es evidente en el nio en .pdf
Cul es el tipo de cognicin que es evidente en el nio en .pdf
abcfootcare
 
Ha perdido la publicidad televisiva su poder Adopte una po.pdf
Ha perdido la publicidad televisiva su poder Adopte una po.pdfHa perdido la publicidad televisiva su poder Adopte una po.pdf
Ha perdido la publicidad televisiva su poder Adopte una po.pdf
abcfootcare
 
If a firms sources of funds have been as listed in the foll.pdf
If a firms sources of funds have been as listed in the foll.pdfIf a firms sources of funds have been as listed in the foll.pdf
If a firms sources of funds have been as listed in the foll.pdf
abcfootcare
 
En cul de las siguientes situaciones esperara que el dla.pdf
En cul de las siguientes situaciones esperara que el dla.pdfEn cul de las siguientes situaciones esperara que el dla.pdf
En cul de las siguientes situaciones esperara que el dla.pdf
abcfootcare
 
En los Estados Unidos la formacin y el desarrollo tienden .pdf
En los Estados Unidos la formacin y el desarrollo tienden .pdfEn los Estados Unidos la formacin y el desarrollo tienden .pdf
En los Estados Unidos la formacin y el desarrollo tienden .pdf
abcfootcare
 
evaluate the importance of stakeholders especially in LoLC i.pdf
evaluate the importance of stakeholders especially in LoLC i.pdfevaluate the importance of stakeholders especially in LoLC i.pdf
evaluate the importance of stakeholders especially in LoLC i.pdf
abcfootcare
 
Tim tiene preferencias racionales A y Jim tiene preferencia.pdf
Tim tiene preferencias racionales A y Jim tiene preferencia.pdfTim tiene preferencias racionales A y Jim tiene preferencia.pdf
Tim tiene preferencias racionales A y Jim tiene preferencia.pdf
abcfootcare
 
E183 Restricciones y designaciones de activos Un hospital.pdf
E183 Restricciones y designaciones de activos Un hospital.pdfE183 Restricciones y designaciones de activos Un hospital.pdf
E183 Restricciones y designaciones de activos Un hospital.pdf
abcfootcare
 
Ecuacin de efectivo Blitz Corp tiene un valor en libros d.pdf
Ecuacin de efectivo Blitz Corp tiene un valor en libros d.pdfEcuacin de efectivo Blitz Corp tiene un valor en libros d.pdf
Ecuacin de efectivo Blitz Corp tiene un valor en libros d.pdf
abcfootcare
 
Compare and contrast neurotransmitter receptor proteins with.pdf
Compare and contrast neurotransmitter receptor proteins with.pdfCompare and contrast neurotransmitter receptor proteins with.pdf
Compare and contrast neurotransmitter receptor proteins with.pdf
abcfootcare
 
Containers can hold and may even share necessary OS componen.pdf
Containers can hold and may even share necessary OS componen.pdfContainers can hold and may even share necessary OS componen.pdf
Containers can hold and may even share necessary OS componen.pdf
abcfootcare
 
Characters Chris18 month old toddler TeresaChriss mom.pdf
Characters Chris18 month old toddler TeresaChriss mom.pdfCharacters Chris18 month old toddler TeresaChriss mom.pdf
Characters Chris18 month old toddler TeresaChriss mom.pdf
abcfootcare
 
Amy est interesada en una carrera en administracin de recu.pdf
Amy est interesada en una carrera en administracin de recu.pdfAmy est interesada en una carrera en administracin de recu.pdf
Amy est interesada en una carrera en administracin de recu.pdf
abcfootcare
 
Assume a Poisson distribution with 44 Find the following .pdf
Assume a Poisson distribution with 44 Find the following .pdfAssume a Poisson distribution with 44 Find the following .pdf
Assume a Poisson distribution with 44 Find the following .pdf
abcfootcare
 
Al 1 de enero de 2019 Kane Company tena activos totales de.pdf
Al 1 de enero de 2019 Kane Company tena activos totales de.pdfAl 1 de enero de 2019 Kane Company tena activos totales de.pdf
Al 1 de enero de 2019 Kane Company tena activos totales de.pdf
abcfootcare
 
A firm with a capital intensity ratio of 98 has 98 in bl.pdf
A firm with a capital intensity ratio of 98 has 98 in bl.pdfA firm with a capital intensity ratio of 98 has 98 in bl.pdf
A firm with a capital intensity ratio of 98 has 98 in bl.pdf
abcfootcare
 
1Frank Claiborne married 5 federal withholding allowances.pdf
1Frank Claiborne married 5 federal withholding allowances.pdf1Frank Claiborne married 5 federal withholding allowances.pdf
1Frank Claiborne married 5 federal withholding allowances.pdf
abcfootcare
 
23 Debido a que Venus tiene volcanes y grandes fallas la t.pdf
23 Debido a que Venus tiene volcanes y grandes fallas la t.pdf23 Debido a que Venus tiene volcanes y grandes fallas la t.pdf
23 Debido a que Venus tiene volcanes y grandes fallas la t.pdf
abcfootcare
 
A Eitim srecinde yer alan drt adm nelerdir Aklamak B.pdf
A Eitim srecinde yer alan drt adm nelerdir Aklamak   B.pdfA Eitim srecinde yer alan drt adm nelerdir Aklamak   B.pdf
A Eitim srecinde yer alan drt adm nelerdir Aklamak B.pdf
abcfootcare
 

More from abcfootcare (20)

Is there a case study of a business that employed retained e.pdf
Is there a case study of a business that employed retained e.pdfIs there a case study of a business that employed retained e.pdf
Is there a case study of a business that employed retained e.pdf
 
Cul es el tipo de cognicin que es evidente en el nio en .pdf
Cul es el tipo de cognicin que es evidente en el nio en .pdfCul es el tipo de cognicin que es evidente en el nio en .pdf
Cul es el tipo de cognicin que es evidente en el nio en .pdf
 
Ha perdido la publicidad televisiva su poder Adopte una po.pdf
Ha perdido la publicidad televisiva su poder Adopte una po.pdfHa perdido la publicidad televisiva su poder Adopte una po.pdf
Ha perdido la publicidad televisiva su poder Adopte una po.pdf
 
If a firms sources of funds have been as listed in the foll.pdf
If a firms sources of funds have been as listed in the foll.pdfIf a firms sources of funds have been as listed in the foll.pdf
If a firms sources of funds have been as listed in the foll.pdf
 
En cul de las siguientes situaciones esperara que el dla.pdf
En cul de las siguientes situaciones esperara que el dla.pdfEn cul de las siguientes situaciones esperara que el dla.pdf
En cul de las siguientes situaciones esperara que el dla.pdf
 
En los Estados Unidos la formacin y el desarrollo tienden .pdf
En los Estados Unidos la formacin y el desarrollo tienden .pdfEn los Estados Unidos la formacin y el desarrollo tienden .pdf
En los Estados Unidos la formacin y el desarrollo tienden .pdf
 
evaluate the importance of stakeholders especially in LoLC i.pdf
evaluate the importance of stakeholders especially in LoLC i.pdfevaluate the importance of stakeholders especially in LoLC i.pdf
evaluate the importance of stakeholders especially in LoLC i.pdf
 
Tim tiene preferencias racionales A y Jim tiene preferencia.pdf
Tim tiene preferencias racionales A y Jim tiene preferencia.pdfTim tiene preferencias racionales A y Jim tiene preferencia.pdf
Tim tiene preferencias racionales A y Jim tiene preferencia.pdf
 
E183 Restricciones y designaciones de activos Un hospital.pdf
E183 Restricciones y designaciones de activos Un hospital.pdfE183 Restricciones y designaciones de activos Un hospital.pdf
E183 Restricciones y designaciones de activos Un hospital.pdf
 
Ecuacin de efectivo Blitz Corp tiene un valor en libros d.pdf
Ecuacin de efectivo Blitz Corp tiene un valor en libros d.pdfEcuacin de efectivo Blitz Corp tiene un valor en libros d.pdf
Ecuacin de efectivo Blitz Corp tiene un valor en libros d.pdf
 
Compare and contrast neurotransmitter receptor proteins with.pdf
Compare and contrast neurotransmitter receptor proteins with.pdfCompare and contrast neurotransmitter receptor proteins with.pdf
Compare and contrast neurotransmitter receptor proteins with.pdf
 
Containers can hold and may even share necessary OS componen.pdf
Containers can hold and may even share necessary OS componen.pdfContainers can hold and may even share necessary OS componen.pdf
Containers can hold and may even share necessary OS componen.pdf
 
Characters Chris18 month old toddler TeresaChriss mom.pdf
Characters Chris18 month old toddler TeresaChriss mom.pdfCharacters Chris18 month old toddler TeresaChriss mom.pdf
Characters Chris18 month old toddler TeresaChriss mom.pdf
 
Amy est interesada en una carrera en administracin de recu.pdf
Amy est interesada en una carrera en administracin de recu.pdfAmy est interesada en una carrera en administracin de recu.pdf
Amy est interesada en una carrera en administracin de recu.pdf
 
Assume a Poisson distribution with 44 Find the following .pdf
Assume a Poisson distribution with 44 Find the following .pdfAssume a Poisson distribution with 44 Find the following .pdf
Assume a Poisson distribution with 44 Find the following .pdf
 
Al 1 de enero de 2019 Kane Company tena activos totales de.pdf
Al 1 de enero de 2019 Kane Company tena activos totales de.pdfAl 1 de enero de 2019 Kane Company tena activos totales de.pdf
Al 1 de enero de 2019 Kane Company tena activos totales de.pdf
 
A firm with a capital intensity ratio of 98 has 98 in bl.pdf
A firm with a capital intensity ratio of 98 has 98 in bl.pdfA firm with a capital intensity ratio of 98 has 98 in bl.pdf
A firm with a capital intensity ratio of 98 has 98 in bl.pdf
 
1Frank Claiborne married 5 federal withholding allowances.pdf
1Frank Claiborne married 5 federal withholding allowances.pdf1Frank Claiborne married 5 federal withholding allowances.pdf
1Frank Claiborne married 5 federal withholding allowances.pdf
 
23 Debido a que Venus tiene volcanes y grandes fallas la t.pdf
23 Debido a que Venus tiene volcanes y grandes fallas la t.pdf23 Debido a que Venus tiene volcanes y grandes fallas la t.pdf
23 Debido a que Venus tiene volcanes y grandes fallas la t.pdf
 
A Eitim srecinde yer alan drt adm nelerdir Aklamak B.pdf
A Eitim srecinde yer alan drt adm nelerdir Aklamak   B.pdfA Eitim srecinde yer alan drt adm nelerdir Aklamak   B.pdf
A Eitim srecinde yer alan drt adm nelerdir Aklamak B.pdf
 

Recently uploaded

Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
Nguyen Thanh Tu Collection
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
Steve Thomason
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 

Recently uploaded (20)

Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 

In java and based upon a txt file please add the first FOUR.pdf

  • 1. In java and based upon a .txt file please add the first FOUR lines for EACH student in the file into an arraylist. The next few lines with course name, etc should be created into a course object (a new object). Then then they should be added to an arraylist of type course. This code should also check for white space to know when to move on to the next student in the file. This is the txt file. Michael West 900753 2003 TruE Art Appreciation,1090,3,sync,T Data Structures,2735,5,online,MWF Calculus,1070,4,in-person,MTWF Personal Finance,1070,3,online,TBD Health Ethics,2080,3,async,TR Festus Park 900846 2000 False Art Appreciation,1090,3,sync,T Intro to CS,1724,4,in-person,MWTF Statistics,2010,3,Online,MWF Personal Finance,1070,3,online,TBD Africa and the World,2090,3,sync,WF Ahmed Nord 900963 2004 true Intro to Philosophy,1070,3,online,TR Data Structures,2735,5,online,MWF Intro to Tennis,1000,3,in-person,MWF Personal Finance,1070,3,online,TBD Health Ethics,2080,3,async,TR Tasha Ohlder 900102 1994 true Intro to Sociology,1010,3,async,MW Data Structures,2735,5,online,MWF
  • 2. Statistics,2020,4,online,MWRF Personal Finance,1070,3,online,TBD Intro to Theology,1080,3,async,WF Earl Mint 900159 2003 false Calculus,1070,4,online,MTWF Intro to CS,1724,4,in-person,MWTF Personal Finance,1070,3,online,TBD Health Ethics,2080,3,async,TR English Composition,2010,3,online,MWF Katie Easton 900951 2000 false Discrete Structs,2550,3,online,TR Intro to CS,1724,4,in-person,MWTF Intro to Karate,1040,3,in-person,MWF Personal Finance,1070,3,online,TBD Health Ethics,2080,3,async,TR Kennedy Dotson 900237 1999 True Intro to Philosophy,1070,3,online,TR Data Structures,2735,5,online,MWF Intro to Data Science,1070,4,in-person,MWF Personal Finance,1070,3,online,TBD Nick Peoples 900856 2001 False Intro to Sociology,1010,3,online,MW Intro to CS,1724,4,in-person,MWTF Intro to Tennis,1000,3,in-person,MWF Personal Finance,1070,3,online,TBD Olivia Priest
  • 3. 900123 1999 True Intro to Philosophy,1070,3,online,TR Data Structures,2735,5,online,MWF Intro to Data Science,1070,4,in-person,MWF Macro Economics,2020,3,sync,TW Personal Finance,1070,3,online,TBD Rashad Black 900456 2001 False Intro to Sociology,1010,3,online,MW Intro to CS,1724,4,in-person,MWTF Intro to Tennis,1000,3,in-person,MWF Personal Finance,1070,3,online,TBD How Things Work,1010,3,async,WF For example, Michael West, 900753,2003, and true should be in the arraylist. that means festus park, 900846, 2000, and false should also be in the arraylist. So the arraylist should have the first four items from each student. So the next 5 or so lines should be split into an array and then placed into a course object. Note each student does not have 5 classes so this cannot be hardcoded. Also please do this in the simplest way possible. Use .hasNextLine, 4 .next() for each students info, check for white space, use scanner, and a while loop to read through file. The answer can be written out or typed. Thank you This is the txt file. Michael West 900753 2003 TruE Art Appreciation,1090,3,sync,T Data Structures,2735,5,online,MWF Calculus,1070,4,in-person,MTWF Personal Finance,1070,3,online,TBD Health Ethics,2080,3,async,TR Festus Park 900846
  • 4. 2000 False Art Appreciation,1090,3,sync,T Intro to CS,1724,4,in-person,MWTF Statistics,2010,3,Online,MWF Personal Finance,1070,3,online,TBD Africa and the World,2090,3,sync,WF Ahmed Nord 900963 2004 true Intro to Philosophy,1070,3,online,TR Data Structures,2735,5,online,MWF Intro to Tennis,1000,3,in-person,MWF Personal Finance,1070,3,online,TBD Health Ethics,2080,3,async,TR Tasha Ohlder 900102 1994 true Intro to Sociology,1010,3,async,MW Data Structures,2735,5,online,MWF Statistics,2020,4,online,MWRF Personal Finance,1070,3,online,TBD Intro to Theology,1080,3,async,WF Earl Mint 900159 2003 false Calculus,1070,4,online,MTWF Intro to CS,1724,4,in-person,MWTF Personal Finance,1070,3,online,TBD Health Ethics,2080,3,async,TR English Composition,2010,3,online,MWF Katie Easton 900951 2000 false Discrete Structs,2550,3,online,TR
  • 5. Intro to CS,1724,4,in-person,MWTF Intro to Karate,1040,3,in-person,MWF Personal Finance,1070,3,online,TBD Health Ethics,2080,3,async,TR Kennedy Dotson 900237 1999 True Intro to Philosophy,1070,3,online,TR Data Structures,2735,5,online,MWF Intro to Data Science,1070,4,in-person,MWF Personal Finance,1070,3,online,TBD Nick Peoples 900856 2001 False Intro to Sociology,1010,3,online,MW Intro to CS,1724,4,in-person,MWTF Intro to Tennis,1000,3,in-person,MWF Personal Finance,1070,3,online,TBD Olivia Priest 900123 1999 True Intro to Philosophy,1070,3,online,TR Data Structures,2735,5,online,MWF Intro to Data Science,1070,4,in-person,MWF Macro Economics,2020,3,sync,TW Personal Finance,1070,3,online,TBD Rashad Black 900456 2001 False Intro to Sociology,1010,3,online,MW Intro to CS,1724,4,in-person,MWTF Intro to Tennis,1000,3,in-person,MWF Personal Finance,1070,3,online,TBD How Things Work,1010,3,async,WF
  • 6. Michael West 900753 2003 TruE Art Appreciation,1090,3,sync,T Data Structures,2735,5,online,MWF Calculus,1070,4,in-person,MTWF Personal Finance,1070,3,online,TBD Health Ethics,2080,3,async,TR Festus Park 900846 2000 False Art Appreciation,1090,3,sync,T Intro to CS,1724,4,in-person,MWTF Statistics,2010,3,Online,MWF Personal Finance,1070,3,online,TBD Africa and the World,2090,3,sync,WF Ahmed Nord 900963 2004
  • 7. true Intro to Philosophy,1070,3,online,TR Data Structures,2735,5,online,MWF Intro to Tennis,1000,3,in-person,MWF Personal Finance,1070,3,online,TBD Health Ethics,2080,3,async,TR Tasha Ohlder 900102 1994 true Intro to Sociology,1010,3,async,MW Data Structures,2735,5,online,MWF Statistics,2020,4,online,MWRF Personal Finance,1070,3,online,TBD Intro to Theology,1080,3,async,WF Earl Mint 900159 2003 false Calculus,1070,4,online,MTWF
  • 8. Intro to CS,1724,4,in-person,MWTF Personal Finance,1070,3,online,TBD Health Ethics,2080,3,async,TR English Composition,2010,3,online,MWF Katie Easton 900951 2000 false Discrete Structs,2550,3,online,TR Intro to CS,1724,4,in-person,MWTF Intro to Karate,1040,3,in-person,MWF Personal Finance,1070,3,online,TBD Health Ethics,2080,3,async,TR Kennedy Dotson 900237 1999 True Intro to Philosophy,1070,3,online,TR Data Structures,2735,5,online,MWF Intro to Data Science,1070,4,in-person,MWF Personal Finance,1070,3,online,TBD
  • 9. Nick Peoples 900856 2001 False Intro to Sociology,1010,3,online,MW Intro to CS,1724,4,in-person,MWTF Intro to Tennis,1000,3,in-person,MWF Personal Finance,1070,3,online,TBD Olivia Priest 900123 1999 True Intro to Philosophy,1070,3,online,TR Data Structures,2735,5,online,MWF Intro to Data Science,1070,4,in-person,MWF Macro Economics,2020,3,sync,TW Personal Finance,1070,3,online,TBD Rashad Black 900456 2001
  • 10. False Intro to Sociology,1010,3,online,MW Intro to CS,1724,4,in-person,MWTF Intro to Tennis,1000,3,in-person,MWF Personal Finance,1070,3,online,TBD How Things Work,1010,3,async,WF For example, Michael West, 900753,2003, and true should be in the arraylist. that means festus park, 900846, 2000, and false should also be in the arraylist. So the arraylist should have the first four items from each student. So the next 5 or so lines should be split into an array and then placed into a course object. Note each student does not have 5 classes so this cannot be hardcoded. Also please do this in the simplest way possible. Use .hasNextLine, 4 .next() for each students info, check for white space, use scanner, and a while loop to read through file. The answer can be written out or typed. Thank you