Programmable editors (like Vim and Emacs) let you define abbreviations, so you type "sop(", and it would automatically be expanded to "System.out.println(". If your editor/IDE doesn't have that function, then a desktop automation tool like TypeIt4Me or QuicKeys might work.
Joined: May 23, 2008
In Macros, replacement happens wherever the macro function is used. When we use functions each would result in a call. Which add more overhead? I don't know!