Druckliniennummer Java
System.out.println("I'm in line #" +
new Exception().getStackTrace()[0].getLineNumber());
Vivacious Vulture
System.out.println("I'm in line #" +
new Exception().getStackTrace()[0].getLineNumber());