Can someone tell me why i keep getting an error in my program. for 40 going down its tells me that class, interface, or enum expected. it happen after i put my compareTO and equal method in.
Printable View
Can someone tell me why i keep getting an error in my program. for 40 going down its tells me that class, interface, or enum expected. it happen after i put my compareTO and equal method in.
Looks like you've got one too many curly brackets after your compareTo() method declaration.
thank you i fixed it