Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一些在 IntelliJ 中编写的 java 代码,需要在 Groovy 中实现。我知道 Groovy 是 Java 的一个子集,所以确定它不应该太难做对吗?
有人可以指导我如何实现这一目标吗?
谢谢
如果你想在 groovy 中实现它,你可以创建你的对象的一个实例并调用他的方法?
def myObj = new MyJavaClass()
然后做这样的事情:
myObj.myMethod()
还是我误解了你的问题?