?? ex2_11.java
字號:
import javax.swing.JOptionPane;/* * To change this template, choose Tools | Templates * and open the template in the editor. *//** * * @author xiaolei */public class EX2_11 { public static void main(String[] args) { int num; num = Integer.parseInt(JOptionPane.showInputDialog("輸入整數:")); System.out.println("Is " + num + " divided by 5 and 6? " + ((num % 5 == 0)&&(num % 6 ==0))); System.out.println("Is " + num + " divided by 5 or 6? " + ((num % 5 == 0)||(num % 6 ==0))); System.out.println("Is " + num + " divided by 5 or 6, but not both? " + (((num % 5 == 0)||(num % 6 ==0))&&((num % 5 != 0)||(num % 6 !=0)))); }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -