Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Are you sure? It does when I do it.

    I don't see any reason why it should be any different.

    public class SumSquaredDivisors {
      public static String listSquared(long m, long n) {
        System.out.println("testing123");
        return "";
      }
    }
    

    outputs

    test1(SumSquaredDivisorsTest)
    testing123
      expected:<[[[1, 1], [42, 2500], [246, 84100]]]> but was:<[]>
      
    test2(SumSquaredDivisorsTest)
    testing123
      expected:<[[[42, 2500], [246, 84100]]]> but was:<[]>
      
    test3(SumSquaredDivisorsTest)
    testing123
      expected:<[[[287, 84100]]]> but was:<[]>
    

    Maybe the problem isn't in the println itself.

  • Custom User Avatar

    Only problem is that it is not showing in the output tab.

  • Custom User Avatar

    System.out.print("hello"); and System.out.println("hello"); should work in Java without importing.

  • Custom User Avatar

    I would want to debug my code by addind some lines to the output with certain strings. How can I do that? I searched around and from what I've found I should be using console.out("String to print");, but this doesn't seem to be working at all. I cannot import java.lang and use System.out.println either. Can anyone point me towards a functional way to do this is this environment?