A job has start time , finish time and profit .
static class Job { int start , finish , profit ; public Job ( int start , int finish , int profit ) { this . start = start ; this . finish = finish ; this . profit = profit ; } } ;