fork download
  1. class Main
  2. {
  3. public static void main(String [ ] args)
  4. {
  5. TestClass A = TestClass.createTestWithCount(5);
  6. }
  7. }
  8.  
  9. class TestClass
  10. {
  11. private TestClass(int count, int other)
  12. {
  13. // do something
  14. }
  15.  
  16. public static TestClass createTestWithCount(int count)
  17. {
  18. return new TestClass(count, 0);
  19. }
  20. }
  21.  
Success #stdin #stdout 0.07s 380160KB
stdin
Standard input is empty
stdout
Standard output is empty