-
编写一个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
-
网络爬虫开源代码,多线程下载,可以扩展。
网络爬虫开源代码,多线程下载,可以扩展。-Open-source code network reptiles, multi-threaded download, can be extended.
- 2022-08-09 14:54:56下载
- 积分:1
-
下载网页上指定的内容,可以作为简单的网上爬虫等小工具,完全采用java编写...
下载网页上指定的内容,可以作为简单的网上爬虫等小工具,完全采用java编写-Specified on the contents of the download page can be used as a simple online reptiles and other small tools, fully prepared with java
- 2022-10-22 00:40:08下载
- 积分:1
-
一个没有数据库连接的小型学生信息管理系统
一个没有数据库连接的小型学生信息管理系统-A small database connection Student Information Management System
- 2023-03-29 21:20:03下载
- 积分:1
-
A xml searcher by keyword or keywords.Coding by Nori.
运用jdom1.0 api 编写的基于英文关键字检索xml文件的java程序。主要采用了键树和倒排链表来完成。-A xml searcher by keyword or keywords.Coding by Nori.
- 2022-05-22 10:56:03下载
- 积分:1
-
此为连接池实现程序
此为连接池实现程序-for this procedure Connection Pool
- 2023-08-05 10:40:04下载
- 积分:1
-
俄罗斯方块游戏,用JAVA写的,不用介绍了吧,比较简单的那种。...
俄罗斯方块游戏,用JAVA写的,不用介绍了吧,比较简单的那种。-Tetris game, written using JAVA, without introduction of the bar, a relatively simple kind.
- 2023-06-08 19:15:03下载
- 积分:1
-
一个MP3播放器
用java写的mp3播放器-with an MP3 player
- 2023-02-24 08:50:03下载
- 积分:1
-
一个简单的Java数据库连接 这个是一个关于MySQL的数据库连接
一个简单的Java数据库连接 这个是一个关于MySQL的数据库连接-A simple Java database connection This is a MySQL database connection
- 2023-07-20 10:05:04下载
- 积分:1
-
使用java接收邮件,在DOS命令窗口中可直接编译运行该程序!
使用java接收邮件,在DOS命令窗口中可直接编译运行该程序!-Receive messages using java, in the DOS command window can be directly compiled to run the program!
- 2022-01-22 08:25:39下载
- 积分:1