As in C++, a constructor in Java is simply a member function with the same name as the class:
class newClass { ... newClass (int i) { ... // initialization } }