简体   繁体   English

如何在某些IDE中的对象上调用方法?

[英]How do I invoke methods on my objects in certain IDEs?

I am learning Java with a University that makes use of BlueJ as a learning IDE. 我正在使用BlueJ作为学习IDE的大学学习Java。 It works very differently to full blown IDE's such as Eclipse or Netbeans, but I have these installed (along with IntelliJ) to tryout and move on to. 它与成熟的IDE(例如Eclipse或Netbeans)的工作方式非常不同,但是我已经安装了这些工具(与IntelliJ一起使用)以进行试验并继续进行。

My question however is if there is a command line where I can simply send message sends to the Classes / packages that I am working on. 但是,我的问题是,是否存在一个命令行,我可以在其中简单地将消息发送到正在处理的类/包。

In BlueJ you can install extensions, and one such extension is a command line style window where I can fully test any elements of the project simply by invoking methods. 在BlueJ中,您可以安装扩展,一个这样的扩展是命令行样式窗口,在其中可以通过调用方法完全测试项目的任何元素。

Does such a thing exist in NetBeans / Eclipse / IntelliJ? NetBeans / Eclipse / IntelliJ中是否存在这样的东西?

Tools | 工具| JShell Console... runs such an interactive environment in IntelliJ IDEA. JShell Console ...在IntelliJ IDEA中运行这样的交互式环境。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM