-
编写一个java应用程序。用户从键盘输入一个1
编写一个java应用程序。用户从键盘输入一个1-9999之间的数,程序将判断这个数是几位数,并判断这个数是否回文数。回文数是指将数含有的数字逆序排列后得到的数和原数相同,例如12121,4224,6778776等都是回文数。
1)程序具有判断用户的输入是否为合法整数的功能。对非法输入(例如含有字母)要进行处理。
2)要判断输入数的位数,并输出相关信息。
3)要判断是否回文数。
二、二战期间,英国情报人员获取德军的一机密电报,电报的内容为:
bzdz izu sxgzd vs lh ,vpzg woflsh vs vwrh vhlsddlmp glm wrw gzy vsg .gflyz gstfzu bvsg gzsd hdmlp vml lm ,hghzvy wmz hwiry mvvdgvy izd z hzd vivsg ,ltz tmlo tmlO
情报人员已经知道,这段电报的加密方式为:
1. 首先将字符串的顺序颠倒。
2. 字母互换的规律为:A->Z, B-Y, C-X...X->C, Y->B, Z-A a->z, b->y, c-x...x->c, y->b, z->a.
3. 非字母字符保持不变。
请编程帮助情报人员破译这份机密电报。给出注释良好的源程序和程序运行后的结果。
-Write a java application. User keyboard input from a number between 1-9999, the program will determine the number of a few are a few, and to determine whether the number of palindrome number. Palindrome refers to a number of the figure contains a number of reverse order and after a number of the original number of the same, such as the number of 12121,4224,6778776 are palindrome.
1) proced
- 2023-05-18 17:45:02下载
- 积分:1
-
上海移动通信企业短信通平台EMPP接口(Java)
上海移动通信企业短信通平台EMPP接口(Java)-Shanghai Mobile Communications Enterprise SMS messaging platform EMPP Interface (Java)
- 2022-07-13 10:37:28下载
- 积分:1
-
a written examination system can also test your knowledge of jsp
一个jsp写的考试系统,还可以测试你的jsp知识-a written examination system can also test your knowledge of jsp
- 2022-02-07 23:07:08下载
- 积分:1
-
hessian协议使用例子,完整的eclipse工程文件。
hessian协议使用例子,完整的eclipse工程文件。-Hessian using the example of the agreement, complete eclipse project file.
- 2022-07-14 04:47:53下载
- 积分:1
-
TC20
TC20―软件包-TC20-package
- 2022-12-11 06:20:03下载
- 积分:1
-
java 的上传程序,很好用
java 的上传程序,很好用-upload procedures with good
- 2022-06-18 12:24:59下载
- 积分:1
-
B/S结构的论文管理系统,采用jsp编写.
B/S结构的论文管理系统,采用jsp编写.-B/S structure of the paper management system, used to prepare jsp.
- 2023-03-26 19:30:03下载
- 积分:1
-
实现Runnable接口创建线程
实现Runnable接口创建线程-achieve starring interface to create threads
- 2022-03-17 19:57:49下载
- 积分:1
-
用JAVA实现的模拟内存管理程序,可以模拟操作系统动态管理内存,主要采用首次适应算法以及最佳适应算法。...
用JAVA实现的模拟内存管理程序,可以模拟操作系统动态管理内存,主要采用首次适应算法以及最佳适应算法。-The realization of the simulation with JAVA memory management procedures, the operating system can simulate the dynamic management of memory, the main algorithm used to adapt the first and best adaptation algorithm.
- 2022-01-24 15:35:16下载
- 积分:1
-
JAVA数据库访问程序实例
JAVA数据库访问程序实例-Java Database Access Example
- 2022-03-15 16:32:29下载
- 积分:1