Please post the errors you get and at which line you get them
javaAddict
Nearly a Senior Poster
3,329 posts since Dec 2007
Reputation Points: 1,014
Solved Threads: 448
That is just a method declaration, not a constructor. As already stated above, constructors do not specify a return type because they always return an instance of that class.
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847