So I was looking at Google's I/O App, iosched, and I notice they implement constants through a nested interface. For example in their ScheduleDatabase class they have:
public class ScheduleDatabase extends SQLiteOpenHelper {
interface Tables {
String BLOCKS = "blocks"
String TRACKS = "tracks"
}
}
But I have been reading online that it is poor java practice to create a interface to just store constants. But as you can see in the ScheduleDatabase class it kind of makes sense why they went with this approach. So I was wondering if this is also poor practice?