-
编写一个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
-
FTP客户端 实现了客户端与FTP服务器的连接。可以上传,下载文件...
FTP客户端 实现了客户端与FTP服务器的连接。可以上传,下载文件-FTP client
- 2022-12-10 21:40:03下载
- 积分:1
-
获取浮点型和双精度型数据两位有效数字
获取浮点型和双精度型数据两位有效数字-Access to floating-point type and double-precision data of two digits
- 2022-01-25 16:18:49下载
- 积分:1
-
java me美女过街游戏,一小美女走过街道,路上有车不时通过,不能让车撞到...
java me美女过街游戏,一小美女走过街道,路上有车不时通过,不能让车撞到-java me beautiful game across the street, a small beauty through the streets, cars on the road from time to time has passed, so that cars should not hit
- 2022-07-11 07:42:42下载
- 积分:1
-
请仔细阅读你写的文件包其特定的前…
请认真阅读您的文件包然后写出其具体功能(至少要20个字)。尽量不要让站长把时间都花费在为您修正说明上。压缩包解压时不能有密码。系统会自动删除debug和release目录,所以请不要将文件放在这两个目录下
-Please read them carefully before you write the document package to their specific functions (at least 20 words). Try not to let the station master at the time you spend on the amendment note. Package should not have a password when extracting. The system will automatically delete debug and release directory, so please do not file on these two directory
- 2023-01-07 08:25:03下载
- 积分:1
-
利用Java的多线程技术实现并行多任务的管理
利用Java的多线程技术实现并行多任务的管理-use Java multi-threading technology to achieve concurrent multi-task management
- 2022-03-20 13:48:51下载
- 积分:1
-
解决jsp+MysQL输入和输出中文乱码的方法
配置是tomcat+mysql,版本都是最新的...
解决jsp+MysQL输入和输出中文乱码的方法
配置是tomcat+mysql,版本都是最新的
- 2022-03-17 15:37:48下载
- 积分:1
-
Java 控制Office 控件是非常麻烦的一件事情。
自从有了JACOB后,事情变得简单多了。
但是要实现Java灵活的控制Word还是一件非常麻烦的...
Java 控制Office 控件是非常麻烦的一件事情。
自从有了JACOB后,事情变得简单多了。
但是要实现Java灵活的控制Word还是一件非常麻烦的事情。
-Java Control Office controls is a very troublesome thing. Since the post-JACOB, things become much simpler. But to achieve a flexible Java Control Word is a very troublesome thing.
- 2023-07-08 07:50:02下载
- 积分:1
-
) Application of the Customize dialog box. (2) Save the file to open dialog, and...
)自定义对话框应用。
(2)文件保存打开对话框和颜色对话框应用。
(3)消息对话应用。
-) Application of the Customize dialog box. (2) Save the file to open dialog, and color dialog box application. (3) The application of the message dialog.
- 2022-01-23 10:45:49下载
- 积分:1
-
j2ee et la liaison avec une base de donnée ace
j2ee et la liaison avec une base de donnée ace-j2ee et la liaison avec une base de donnée acess
- 2022-03-10 09:55:33下载
- 积分:1