摘要: 1 import java.util.Scanner; 2 public class GreatesCommonDivisor { 3 public static void main(String[] args) { 4 Scanner input = new Scanner(System.in); 5 6 System.out.print(... 阅读全文
posted @ 2018-09-17 16:25 LeoLiY 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 1 public class MultiplicationTable { 2 public static void main(String[] args) { 3 System.out.println(" Multiplication Table"); 4 System.out.print(" "); 5 for ... 阅读全文
posted @ 2018-09-17 15:09 LeoLiY 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.Scanner; 2 3 public class Lottery { 4 public static void main(String[] agrs) { 5 int lottery = (int)(Math.random() * 100); 6 7 Scanner input = new Scanner(Sy... 阅读全文
posted @ 2018-09-13 16:18 LeoLiY 阅读(444) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.Scanner; 2 3 public class SubtractionQuiz { 4 public static void main(String[] agrs) { 5 int number1 = (int)(Math.random() * 100); 6 int number2 = (int)(Math.rando... 阅读全文
posted @ 2018-09-13 11:15 LeoLiY 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 1 import javax.swing.JOptionPane; 2 public class ComputeLoanUsingInputDialog { 3 public static void main(String[] args) { 4 String annualInterestRateString = JOptionPane.showInputDialog( ... 阅读全文
posted @ 2018-09-12 15:08 LeoLiY 阅读(4267) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.Scanner; 2 public class DisplayTime { 3 public static void main(String[] args) { 4 Scanner input = new Scanner(System.in); 5 System.out.print("Enter an integer for seconds: ")... 阅读全文
posted @ 2018-09-11 11:37 LeoLiY 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 代码 阅读全文
posted @ 2018-09-11 10:25 LeoLiY 阅读(1771) 评论(0) 推荐(0) 编辑
摘要: 百度网盘下载: Navicat Premium 12.0.24简体中文64位,提取密码: w588 Navicat Premium 12.0.23简体中文64位,提取密码: 67cf Navicat Premium 12.0.22简体中文64位,提取密码: p37x Navicat Premium 阅读全文
posted @ 2018-09-05 15:46 LeoLiY 阅读(1537) 评论(0) 推荐(1) 编辑
摘要: 通过tar.gz压缩包安装 此方法适用于绝大部分的linux系统 1、先下载tar.gz的压缩包,这里使用官网下载。 进入: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 勾选接 阅读全文
posted @ 2018-09-04 14:48 LeoLiY 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 0.说明 这里为了方便说明问题,假设有A和B两台安装了centos6.5的主机。目标是实现A、B两台主机分别能够通过ssh免密码登录到对方主机。不同主机的配置过程一样,这里介绍A主机的配置过程。 事先在AB主机分别创建好要免密码登录的用户名,在/etc/hosts文件增加主机名和ip。 1.环境设置 阅读全文
posted @ 2018-07-20 15:07 LeoLiY 阅读(1398) 评论(0) 推荐(0) 编辑