Core Java: How To Get Java Source Code Line Number & File Name in Code
While debugging code Java programmers often use System.out.println(). It is important to write separate message in each System.out.println() so you can understand from the output where the problem lies.

