B
blank
just dumping this in the group if it helps.
the issue is to have a statement in a method which will always print out
the method name without having to type it in.
this works under windows.
System.out.println(new Exception().getStackTrace()[0].toString() + "");
you might find that the index [0] under other platforms is not the method
name. If not, try other values.
Not that this is just a string, so you can do other things with it than
just printLn.
Particularly useful is how this prints out in JBuilder
It gives the line number in the JBuilder message pane as a hyperlink, so
you can click on it to go to it in the editor pane.
Alternatively, unlike me, you can learn how to use the JB debugger
properly.
regards.... blankStare
the issue is to have a statement in a method which will always print out
the method name without having to type it in.
this works under windows.
System.out.println(new Exception().getStackTrace()[0].toString() + "");
you might find that the index [0] under other platforms is not the method
name. If not, try other values.
Not that this is just a string, so you can do other things with it than
just printLn.
Particularly useful is how this prints out in JBuilder
It gives the line number in the JBuilder message pane as a hyperlink, so
you can click on it to go to it in the editor pane.
Alternatively, unlike me, you can learn how to use the JB debugger
properly.
regards.... blankStare