[英]Netbeans runs Java but shows no output
看起來您使用了錯誤的輸出方法。 嘗試
System.out.println("hello world");
代替。
您正在使用的println方法執行以下操作:
將消息打印到當前JDBC日志流。
這不是你想要的。
嘗試這個 :
public static void main(String[] args){
System.out.println("hello world"); // use System.out.println instead of using println
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.