#i have to make a program that gets information about a course and prints the courses out.

16 messages · Page 1 of 1 (latest)

compact sandal
cedar shuttleBOT
#

This post has been reserved for your question.

Hey @compact sandal! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

edgy zenith
#

You mean you are doing fileIO homework

#

What's your problem then

#

Which exact part you wanna ask about

compact sandal
#

the readFilePopulateList method in CourseManager

#

it returns null if none of the if statements are met but its supposed to throw an exception i think

#

i tried to do that im just stuck

edgy zenith
#

Ok let me see about that

compact sandal
#

ok

#

my code cant even really run because everything is null

#

after i enter a file name and type 1 to view course list it just does null exception cuz i need to add things

edgy zenith
#

If file is empty,not need exception.Just show empty,and it's fine

edgy zenith
#

If(file.isEmpty()){
throw new EmptyFileException();
}

#

If you still want excpetion,this is the code