file - Java - Access to correct line in Java -


i have scanner scans source files , outputs me data (including line numbers). after add information in commentary above line

for example:

line line; code code = new code("this should commented"); 

and after

line line; //comment code code = new code("this should commented"); 

but comment multiple lines in each file. so, line numbers changing. how can access correct line? before editing file, have set of lines should comment. through should check each file , increment line number if comment added on line before in file, best way?


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -