Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

print line number java

System.out.println("I'm in line #" + 
    new Exception().getStackTrace()[0].getLineNumber());
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #print #line #number #java
ADD COMMENT
Topic
Name
7+4 =