Java: Is there support for macros?

后端 未结 7 1189
暗喜
暗喜 2021-02-12 17:47

I am just curious on how people solve this. I often write the same type of code all the time. For instance:

new Thread() {
   //...
   //...
   //...
   //Change         


        
7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-12 18:23

    Well, I guess you could run your java files through the C preprocessor...

提交回复
热议问题