結果 : can we write a method inside a constructor in java