p96_3.2
Posted cherrydream
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了p96_3.2相关的知识,希望对你有一定的参考价值。
1 import java.util.Scanner; 2 public class AdditionQuiz { 3 public static void main(String[] args){ 4 int number1 = (int)(System.currentTimeMillis()%10); 5 int number2 = (int)(System.currentTimeMillis()/10%10); 6 int number3 = (int)(System.currentTimeMillis()/100%10); 7 Scanner input = new Scanner(System.in); 8 System.out.println("What is " + number1 + " + " + number2 + " + " + number3 + "?"); 9 int answer = input.nextInt(); 10 System.out.println(number1 + " + " + number2 + " + " + number3 + " = " + answer + " is " + (number1+number2+number3 == answer)); 11 } 12 }
以上是关于p96_3.2的主要内容,如果未能解决你的问题,请参考以下文章
Spring MVC 3.2 Thymeleaf Ajax 片段
Spring5学习笔记 — “IOC操作Bean管理(基于xml)”
连接MySQL出现错误:ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)(代码片段