Derek Derek8,744 Points
I'm not sure about the relationship between the directories/folders in which the .java files are saved and the package commands on each of the files.
for Song.java and SongBook.java, it is "package com.teamtreehouse.model;" and these are stored in com/teamtreehouse/model.
for Karaoke.java it imports both of the files in com/teamtreehouse.model "import com.teamtreehouse.model.Song;" "import com.tremtreehouse.model.SongBook;"
for KaraokeMachine.java which is saved in com/teamtreehouse, it is "package com.teamtreehouse;"
My questions are
- why do the files have to be saved in different directories and how do we determine which one has to go where
- how does the location in which they are saved change the import package lines?