-
编写一个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
-
一款手机java游戏
狼月,希望大家喜欢
一款手机java游戏
狼月,希望大家喜欢-A cell phone java game wolf months and I hope that everyone likes
- 2022-11-13 02:15:03下载
- 积分:1
-
Java的实用文件程序 运用命令行演示通过了调试
Java的实用文件程序 运用命令行演示通过了调试-Java documentation procedures practical demonstration of the use of command-line through the debug
- 2022-02-25 21:54:11下载
- 积分:1
-
虽然比较简单,但是应该有些用的JAVA小程序。
1.可以嵌进网页中的 日历
2.挖地雷 的小程序
3.俄罗斯方块的简洁版
4.解释多态应用的小程...
虽然比较简单,但是应该有些用的JAVA小程序。
1.可以嵌进网页中的 日历
2.挖地雷 的小程序
3.俄罗斯方块的简洁版
4.解释多态应用的小程序-Although relatively simple, but should be used in some JAVA applets. 1. Can嵌进calendar page 2. Dug mines applet 3. The simple version of Tetris 4. Explain polymorphic applications applet
- 2022-03-17 01:39:03下载
- 积分:1
-
java源代码,经典问题,约瑟夫环问题
天乙论坛java源代码-Tian Forum java source code
- 2022-01-22 13:22:31下载
- 积分:1
-
spring with the development of pet shops, learning as a reference to the spring
用spring开发的宠物商店,可以作为学习spring的一个参考-spring with the development of pet shops, learning as a reference to the spring
- 2022-04-16 16:59:17下载
- 积分:1
-
java聊天程序,能够实现简单的用户之间的聊天
java聊天程序,能够实现简单的用户之间的聊天-java chat program
- 2022-05-20 11:07:50下载
- 积分:1
-
是一个获取媒体数据的长度的程序,程序运行的速度非常的快!
是一个获取媒体数据的长度的程序,程序运行的速度非常的快!-access to the media is a data length of the procedure, the speed of running very fast!
- 2023-04-16 18:30:04下载
- 积分:1
-
student information input and output~
student information input and output~
学生信息输入与查询
上JAVA课上的实验报告-student information input and output~
- 2022-01-20 22:36:04下载
- 积分:1
-
简易java框架开源论坛系统,简 易java框架开源论坛系统
简易java框架开源论坛系统,简 易java框架开源论坛系统-simple java framework revenue Forum Systems, simple java framework revenue Forum, Easy java framework of the forum system revenue
- 2022-01-25 14:36:18下载
- 积分:1