For checking test result automatically, please use "assert" instead of "System.out.print".