In C i used to use #define p printf
to help me code easily rather than typing printf every time
let me give an example to understand better
p("hello world");
it does the job of
printf("hello world");
There is a way in java to do this I went through it long back Its not a duplicate question as they answered there is no way Iam sure of there is a way to do this using ENUM
How can I implement this in java