-
编写一个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
-
第1章 JSP技术概述
实例1 第一个JSP页面
第3章 Web开发基础
实例2 HTML与JavaScript交互示例
第4章 JSP语法...
第1章 JSP技术概述
实例1 第一个JSP页面
第3章 Web开发基础
实例2 HTML与JavaScript交互示例
第4章 JSP语法
实例3 JSP程序的基本结构
实例4 简单数据类型综合应用实例-Chapter 1 outlines examples of JSP technology one first JSP page Chapter 3 examples of Web development based on 2 HTML and JavaScript interactive examples, Chapter 4 JSP examples of grammar 3 JSP examples of the basic structure of the procedure 4 simple data types integrated application
- 2022-02-22 03:29:37下载
- 积分:1
-
一个简单的java记事本,有什么不足之处还希望多多指教。
一个简单的java记事本,有什么不足之处还希望多多指教。-A simple java Notepad, to see what the inadequacies also hope that the exhibitions.
- 2022-04-15 04:39:07下载
- 积分:1
-
if―else语句,switch语句,循环结构,do
if―else语句,switch语句,循环结构,do-while语句,for语句, 跳转语句-if-else statements, switch statements, loops, do-while statement. for statements, statements Jump
- 2023-06-03 16:30:02下载
- 积分:1
-
这是一个计算器脸谱网。
this a calculator to facebook AM.
-this is a calculator to facebook AM.
- 2022-07-25 22:47:06下载
- 积分:1
-
冒泡算法
冒泡算法-请修改MaoPao.zip为MaoPao.java-Bubble algorithm-requested changes to MaoPao.java MaoPao.zip
- 2022-01-22 07:48:04下载
- 积分:1
-
java中的Struts、Hibernate三技术实现应用的春天…
java在struts、spring、hibernate三种技术中的应用实现了对县级代码的权限管理
- 2022-12-20 14:25:04下载
- 积分:1
-
不用刷新实现通用型二级联动菜单,里面有数据库,在Mysql+tomcat6.0下运行...
不用刷新实现通用型二级联动菜单,里面有数据库,在Mysql+tomcat6.0下运行-Do not refresh the menu to achieve universal secondary linkage
- 2022-03-31 03:38:35下载
- 积分:1
-
keyboard can be achieved find functional errors
可以实现找到键盘错误功能-keyboard can be achieved find functional errors
- 2022-06-27 01:42:19下载
- 积分:1
-
我是一个j2ee,开发人员,由于工作要求,转向j2me,做了一款经典的俄罗斯方块游戏...
我是一个j2ee,开发人员,由于工作要求,转向j2me,做了一款经典的俄罗斯方块游戏-I am a j2ee, developer, because of work requirements, steering j2me, make a classic Tetris game
- 2022-02-25 06:03:14下载
- 积分:1