As you will all probably recognise from my much jumbled and incoherent program i am only new to this programming lark and am extremely stuck at the moment.my program is supposed to read a sequence of lines each containing a name, telephone no. and then generates a telephone directory. iv to create a class Person which represents the idea of a person and input of 1000 lines must be catered for. at the moment my program has about 18 errors, all of which i cannot resolve. Any help would be much appreciated.
static boolean Sorting(Person b, Person c) { if(b.surname).compareTo(c.surname)<0) return true; else if((b.surname).compareTo(c.surname)=0)&& (b.forename).compareTo(c.forename<0) return true; else return false; }
public static void main(String [] args) { Person [] human = new Person[1000]; int humanSize = 0;
while(!Console.EndOfFile()) { for(int i = 0; i < humanSize; i++) { Person z = new Person[]; z.getPerson(); human = z; humanSize++; } } Person [] new human = new Person ; int x = 0;
while(x<i) { new Human [x] = Human x; x++; SortChars(new Person z); } } } }