System.out.print("My string: ");
My string: BUILD SUCCESSFUL (total time: 1 second)
System.out.print("My string ");
My string BUILD SUCCESSFUL (total time: 1 second)
System.out.print("My string: ");
My string: My string:
BUILD SUCCESSFUL (total time: 1 second)
Printing a string that ends with a colon and two spaces will make it print twice. What is happening here?
Edit: looks like it s a bug in Netbeans indeed