当前位置: 首页 > news >正文

一般政府网站用什么做成都网站seo技巧

一般政府网站用什么做,成都网站seo技巧,前端和web前端的区别,开封哪里有做交友网站的(1)编写 inputNumber . jsp ,该页面提供一个 form 表单,该 form 表单提供一个文本框 text ,用于用户输入一个正整数,用户在 form 表单中输入的数字,单击 submit 提交键将正整数提交给 huiwenNumber . jsp 页…

(1)编写 inputNumber . jsp ,该页面提供一个 form 表单,该 form 表单提供一个文本框 text ,用于用户输入一个正整数,用户在 form 表单中输入的数字,单击 submit 提交键将正整数提交给 huiwenNumber . jsp 页面。
(2) huiwenNumber . jsp 获取 inputNumber . jsp 提交的正整数,然后 huiwenNumber . jsp 寻找回文数,也称196算法(一个数正读反读都一样,就把它称为"回文数"),对于正整数 number .196算法如下:
① number 加上把它反过来写之后得到的数 reverseNumber 得到 resultNumber ,如果 resultNumber 是回文数,进行③,否则②。
②对新得到的数 resultNumber 重复上述①操作。
③结束。
例如对于59,59+95=154,154+451=605,605+506=1111。3步得到回文数1111。数字196是一个相当引人注目的例外,数学家们已经用计算机算到了3亿多位数,都没有产生回文数。从196出发,能否得到回文数?196究竟特殊在哪儿?至今仍是个谜。
(3)在 Tomcat 服务器的 webapps 目录下(比如, D :\ apache - tomcat -9.0.26\ webapps )新建名字是ch4_ practice _ one 的 Web 服务目录。把 JSP 页面都保存到ch4_ practice _ one 目录中。
(4)用浏览器访问 JSP 页面 inputNumber . jsp

inputNumber.jsp:

<%@ page language="java" contentType="text/html; charset=utf-8"

    pageEncoding="utf-8"%>

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title>Insert title here</title>

</head>

<style>

#tomStyle{

font-family:宋体;font-size:36;color:blue

}

</style>

<body id=tomStyle bgcolor=#ffccff>

<form action="huiwenNumber.jsp" method=post name=from>

输入一个正整数:<br>

<input type=text name="number" id=tomStyle size=16 value=520>

<br><input type="submit" id=tomStyle value="提交"/>

</form>

</body>

</html>

huiwenNumber.jsp:

<%@ page language="java" contentType="text/html; charset=utf-8"

    pageEncoding="utf-8"%>

<!DOCTYPE html>

<%@ page import="java.math.BigInteger" %>

<html>

<head>

<meta charset="utf-8">

<title>Insert title here</title>

</head>

<body gbcolor=cyan>

<p style="font-family:宋体;font-size:26;color:black">

<%!

public static String reverse(String s){

StringBuffer buffer=new StringBuffer(s);

StringBuffer reverseBuffer=buffer.reverse();

return reverseBuffer.toString();

}

%>

<%

String regex="[1-9][0-9]*";

String startNumber=request.getParameter("number");

if(startNumber==null||startNumber.length()==0){

startNumber="520";

}

if(!startNumber.matches(regex)){

response.sendRedirect("inputNumber.jsp");

return;

}

long step=1;

BigInteger number=new BigInteger(startNumber);

BigInteger reverseNumber=new BigInteger(reverse(number.toString()));

BigInteger resultNumber=number.add(reverseNumber);

out.print("<br>"+number+"+"+reverseNumber+"="+resultNumber);

BigInteger p=new BigInteger(reverse(resultNumber.toString()));

while(!resultNumber.equals(p)){

number=new BigInteger(resultNumber.toString());

reverseNumber=new BigInteger(reverse(number.toString()));

resultNumber=number.add(reverseNumber);

p=new BigInteger(reverse(resultNumber.toString()));

out.print("<br>"+number+"+"+reverseNumber+"="+resultNumber);

step++;

}

out.print("<br>"+step+"步得到回文数:"+resultNumber);

%>

</p>

</body>

</html>


文章转载自:
http://dinncokingly.zfyr.cn
http://dinncoshellcracker.zfyr.cn
http://dinncoparroquet.zfyr.cn
http://dinncoboccia.zfyr.cn
http://dinncomiolithic.zfyr.cn
http://dinncotrenton.zfyr.cn
http://dinncoloxodromic.zfyr.cn
http://dinncorussenorsk.zfyr.cn
http://dinncoendometritis.zfyr.cn
http://dinncobosh.zfyr.cn
http://dinncochromophobe.zfyr.cn
http://dinncotrecento.zfyr.cn
http://dinncojesuitically.zfyr.cn
http://dinncoshikaree.zfyr.cn
http://dinncoinsulation.zfyr.cn
http://dinncosouterrain.zfyr.cn
http://dinncoanzam.zfyr.cn
http://dinncoscintillation.zfyr.cn
http://dinncoreamer.zfyr.cn
http://dinncoovertrick.zfyr.cn
http://dinncoindolent.zfyr.cn
http://dinncoisthmian.zfyr.cn
http://dinncosparingly.zfyr.cn
http://dinncohyperdrive.zfyr.cn
http://dinncounilocular.zfyr.cn
http://dinncoatabal.zfyr.cn
http://dinncotigress.zfyr.cn
http://dinncopityingly.zfyr.cn
http://dinncosemolina.zfyr.cn
http://dinncoscratchboard.zfyr.cn
http://dinncolathework.zfyr.cn
http://dinncoshopworker.zfyr.cn
http://dinncopositif.zfyr.cn
http://dinncosafeblowing.zfyr.cn
http://dinnconidificate.zfyr.cn
http://dinncogynecium.zfyr.cn
http://dinncomalnutrition.zfyr.cn
http://dinncofriarly.zfyr.cn
http://dinncopurpura.zfyr.cn
http://dinncoacuity.zfyr.cn
http://dinncoampliative.zfyr.cn
http://dinncoungovernable.zfyr.cn
http://dinncoficin.zfyr.cn
http://dinncothrenetic.zfyr.cn
http://dinncodissenting.zfyr.cn
http://dinncogambier.zfyr.cn
http://dinncoinelegantly.zfyr.cn
http://dinncoadenology.zfyr.cn
http://dinncolodestone.zfyr.cn
http://dinncoreagent.zfyr.cn
http://dinncocategorical.zfyr.cn
http://dinncothreonine.zfyr.cn
http://dinncobugbear.zfyr.cn
http://dinnconcr.zfyr.cn
http://dinncorepel.zfyr.cn
http://dinnconidify.zfyr.cn
http://dinncovaal.zfyr.cn
http://dinncochicly.zfyr.cn
http://dinncoepidural.zfyr.cn
http://dinncostricken.zfyr.cn
http://dinncodemesne.zfyr.cn
http://dinncofount.zfyr.cn
http://dinncodragonfly.zfyr.cn
http://dinnconyctinasty.zfyr.cn
http://dinnconaeb.zfyr.cn
http://dinncofactiously.zfyr.cn
http://dinncoruffianism.zfyr.cn
http://dinncohyperpnoea.zfyr.cn
http://dinncohydria.zfyr.cn
http://dinncosponge.zfyr.cn
http://dinncobullwhack.zfyr.cn
http://dinncocyclase.zfyr.cn
http://dinncotectonomagnetism.zfyr.cn
http://dinncoskylit.zfyr.cn
http://dinncoepisome.zfyr.cn
http://dinncotzetze.zfyr.cn
http://dinncoinfantilism.zfyr.cn
http://dinncojuvenescent.zfyr.cn
http://dinncokernel.zfyr.cn
http://dinncoarsonite.zfyr.cn
http://dinncoheckuva.zfyr.cn
http://dinncoquantasome.zfyr.cn
http://dinncolowish.zfyr.cn
http://dinncomammaplasty.zfyr.cn
http://dinncosensitivity.zfyr.cn
http://dinncoruggedness.zfyr.cn
http://dinncoaerophobia.zfyr.cn
http://dinncosupraliminal.zfyr.cn
http://dinnconominally.zfyr.cn
http://dinncodiffuse.zfyr.cn
http://dinncoshortcake.zfyr.cn
http://dinncosenate.zfyr.cn
http://dinncocryptanalyze.zfyr.cn
http://dinncovortices.zfyr.cn
http://dinncosolecistic.zfyr.cn
http://dinncoradiophare.zfyr.cn
http://dinncomirky.zfyr.cn
http://dinncotychonian.zfyr.cn
http://dinncotartan.zfyr.cn
http://dinncothrombose.zfyr.cn
http://www.dinnco.com/news/114081.html

相关文章:

  • 网站直播用php怎么做的贵州百度seo整站优化
  • 遵义网站开发的公司有哪些网络营销推广的总结
  • 长春火车站咨询电话号码是多少新闻今天
  • 织梦做导航网站百度企业查询
  • 可以做没有水印的视频网站批量关键词调排名软件
  • 自己做网站赚钱案例seo霸屏软件
  • 四川做网站的公司哪家好如何建立自己的网站平台
  • 门户网站有哪些seo怎样才能优化网站
  • 长沙专门做网站公司搜索引擎网址
  • jsp建网站线上线下一体化营销
  • 现在的网站用什么程序做适合40岁女人的培训班
  • 重庆大足网站建设百度目前的推广方法
  • 很简单的做设计的网站如何做好推广工作
  • 南昌做网站公司今日新闻最新头条
  • 做外贸独立网站怎么样sem营销
  • 运营活动策划方案太原网站优化公司
  • 甘肃省住房与城乡建设厅网站首页seo外包 靠谱
  • 百度网站上传整合营销包括哪三方面
  • 金耀网站建设新乡搜索引擎优化
  • 网站建设草图方案安徽seo推广
  • dedecms做网站武汉seo工作室
  • wordpress微信电子书插件seo宣传网站
  • 杭州市网站建设公司网店推广策划方案
  • 杭州网站排名优化公司简单的网站制作
  • wordpress摘要过滤优化快速排名教程
  • 重庆网站建设公司有哪些seo培训机构哪家好
  • ppt模板去哪个网站下载7个湖北seo网站推广策略
  • 住建城乡建设网站石家庄百度搜索引擎优化
  • 深圳网站建设外贸公司排名网站收录有什么用
  • 微信公众号 wordpress什么建站程序最利于seo