2014年3月20日
摘要: package hexConversion;import java.util.Scanner;public class HexConversion { public static final int HEX = 2; public static void main(String[] args) { System.out.print("input an integer: "); Scanner console = new Scanner(System.in); int number = console.nextInt(); ... 阅读全文
posted @ 2014-03-20 13:59 Sweet Smile 阅读(214) 评论(0) 推荐(0) 编辑
摘要: package showTwos;import java.util.Scanner;public class ShowTwos {//用户输入一整数,将其进行质因数分解,并打印分解结果。 public static void main(String[] args) { System.out.print("input an integer: "); Scanner console = new Scanner(System.in); int number = console.nextInt(); System.out.p... 阅读全文
posted @ 2014-03-20 09:24 Sweet Smile 阅读(678) 评论(0) 推荐(0) 编辑