fork download
  1. class Testing {
  2.  
  3. void Testing() {
  4. System.out.println("okay then"); //why won't this part print out?
  5.  
  6. }
  7.  
  8. String PrintStuff() {
  9.  
  10. return "what the hell is this";
  11. }
  12.  
  13. }
  14.  
  15. class Main {
  16.  
  17. public static void main(String[] args) {
  18.  
  19. Testing t1 = new Testing();
  20.  
  21. System.out.println(t1.PrintStuff());
  22.  
  23. System.out.println("test statement");
  24.  
  25. }
  26. }
Success #stdin #stdout 0.12s 320576KB
stdin
Standard input is empty
stdout
what the hell is this
test statement