-
编写一个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
-
泽舟网JSP探针 v0.04.rar
泽舟网JSP探针 v0.04.rar-Zezhou net JSP probe v0.04.rar
- 2022-02-20 10:51:50下载
- 积分:1
-
heart heart heart heart heart heart
请笑纳 请笑纳 请笑纳 请笑纳-heart heart heart heart heart heart
- 2022-09-15 10:50:03下载
- 积分: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
-
xuexiaode tuanwei 一个风格很不错的源码
xuexiaode tuanwei 一个风格很不错的源码-xuexiaode tuanwei style is a good source
- 2022-10-09 14:10:03下载
- 积分:1
-
java applet小程序 可以产生烟花汇演 在网页中动
java applet小程序 可以产生烟花汇演 在网页中动-procedure can be a small fireworks display in dynamic website
- 2022-03-18 09:55:46下载
- 积分:1
-
JavaME小学,在帆布箱中使用的下降。可以检查…
javame初级,利用canvas制作的下降的方块。可以通过2、4、8来控制,当按下8键后,方块停在窗体底部。-javame primary, making the decline in the use of canvas in the box. Can be 2,4,8 to control, when you press the 8 key, stopped in the form at the bottom of the box.
- 2023-09-02 16:00:03下载
- 积分:1
-
System will automatically delete the directory of debug and release, so please d...
System will automatically delete the directory of debug and release, so please do not put files on these
- 2022-07-01 23:22:11下载
- 积分:1
-
数据广播系统的一个核心的业务实现程序,采用J2EE的三层架构的思想实现:JSP+Servlet+JAVABEAN...
数据广播系统的一个核心的业务实现程序,采用J2EE的三层架构的思想实现:JSP+Servlet+JAVABEAN-data broadcasting system in a core business procedures, using the three-tier J2EE of ideology : JSP Servlet JAVABEAN
- 2022-02-11 20:11:24下载
- 积分:1
-
jsp写的留言板,比较简单
jsp写的留言板,比较简单-jsp write the message board, a relatively simple
- 2022-02-07 11:46:00下载
- 积分:1