Add or modify keywords in java language

前端 未结 6 771
不知归路
不知归路 2020-12-16 02:47

I know my question does not seem valid, but it is genuine. When writing java I must use the word import so as to import classes from classpath. It is required t

6条回答
  •  Happy的楠姐
    2020-12-16 03:25

    Java doesn't provide any way to redefine keywords.

    If you add or remove keywords to the Java language, then it isn't Java anymore.

    You could write your own language that compiles to Java. This could be as simple as writing a program that does a string replace of uvoziti for import and then runs it through the javac compiler.

提交回复
热议问题