int numcats = 4; System.out.println("I have " + numcats + " cats"); ... An alternative is to use System.out.printf, which is a formatted print.
確定! 回上一頁