java中秋祝福代码 java新年祝福代码
写一段java的代码,可以输出新郎和新娘的名字,并祝他们幸福。,。
public static void main(String[] args){
创新互联建站长期为近1000家客户提供的网站建设服务,团队从业经验10年,关注不同地域、不同群体,并针对不同对象提供差异化的产品和服务;打造开放共赢平台,与合作伙伴共同营造健康的互联网生态环境。为洪山企业提供专业的网站建设、成都做网站,洪山网站改版等技术服务。拥有十载丰富建站经验和众多成功案例,为您定制开发。
String 新郎="新郎名字";
String 新娘="新娘名字";
System.out.println("祝新郎"+新郎+"和新娘"+新娘+"新婚幸福");
}
java小程序:1. 给出一个不多于5位的正整数,要求(1)求出他是几位数(2)分别打印出每一位数字(3)按
import java.util.Scanner;
public class Test {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
// int num=12345;
System.out.println("请输入一个不多于五位的正整数:");
int num = input();
String str = String.valueOf(num);
System.out.println(num + "的位数为:" + str.length());
System.out.println("它的各位数分别为:");
for (int i = 0; i str.length(); i++) {
// System.out.println(str.charAt(i));
System.out.print(str.charAt(i) + " ");
}
System.out.println();
System.out.println("它的各位数逆序分别为:");
for (int i = str.length() - 1; i = 0; i--) {
// System.out.println(str.charAt(i));
System.out.print(str.charAt(i) + " ");
}
System.out.println();
}
private static int input() {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
return n;
}
}
求助中秋节QQ空间祝福留言代码~!
你是要直接的代码还是要网站自己去搜寻一下?
如果是直接代码的话就介绍几个
[M][fts=5][ftc=#8000ff]..●.. ..●..
[ftc=#80ff00].●˙ ˙●˙ ˙●.
[ftc=#0080ff].●[fts=6][B] [fts=5] ●.
[ftc=#00bff3].● 中秋节 ●.
[ftc=#ed008c].●[fts=6][B] [fts=5] ●.
[ftc=#fff799]●. .●
[ftc=#f16d7e] ●. .●
[ftc=#d3f1fd] ●. .●
[ftc=#ee1000][fts=2] ˙●˙
[M] ˙[fts=4]
[M][fts=5][ftc=#8000ff]..●.. ..●..
[ftc=#80ff00].●˙ ˙●˙ ˙●.
[ftc=#0080ff].●[fts=6][B] [fts=5] ●.
[ftc=#00bff3].● 快乐 ●.
[ftc=#ed008c].●[fts=6][B] [fts=5] ●.
[ftc=#fff799]●. .●
[ftc=#f16d7e] ●. .●
[ftc=#d3f1fd] ●. .●
[ftc=#ee1000][fts=2] ˙●˙
[M] ˙[fts=4][M][fts=5][ftc=#8000ff]..●.. ..●..
[ftc=#80ff00].●˙ ˙●˙ ˙●.
[ftc=#0080ff].●[fts=6][B] [fts=5] ●.
[ftc=#00bff3].● 月圆 ●.
[ftc=#ed008c].●[fts=6][B] [fts=5] ●.
[ftc=#fff799]●. .●
[ftc=#f16d7e] ●. .●
[ftc=#d3f1fd] ●. .●
[ftc=#ee1000][fts=2] ˙●˙
[M] ˙[fts=4]
[M][fts=5][ftc=#8000ff]..●.. ..●..
[ftc=#80ff00].●˙ ˙●˙ ˙●.
[ftc=#0080ff].●[fts=6][B] [fts=5] ●.
[ftc=#00bff3].● 人 圆 ●.
[ftc=#ed008c].●[fts=6][B] [fts=5] ●.
[ftc=#fff799]●. .●
[ftc=#f16d7e] ●. .●
[ftc=#d3f1fd] ●. .●
[ftc=#ee1000][fts=2] ˙●˙[/M][R][url=][/url][/R]
M][B][ftc=#ED008C]中秋节[/ft][/ft][ftc=#6CCFF7]快乐[/ft][ftc=#FFF100][/ft]
[fts=6][ftc=#7DC473]*[/ft][/ft][B][ftc=#FBAF00]°bao[/ft][fts=4][ftc=#FFF100]贔[/ft][/ft][ftc=#37B400]丶[/ft]
[ftc=#ED008C]◎[/ft][ftc=#EE1D24]⊙[/ft].[ftc=#FFFDE0]Mu[/ft][ftc=#00AEEF]Ma、
[/ft][ftc=#FFF100]?˙●[/ft][fts=5][ftc=#00A99E]愿[/ft][fts=3][ftc=#EE1D24]你[/ft][fts=2][ftc=#F16D7E]幸福、[/ft][ftc=#2F3192]
[/ft][ftc=#8881BE]‘鲁[/ft][ftc=#A4D49D]lu’[/ft]
[ftc=#2F3192]‘ 深[/ft][ftc=#91278F]罙[/ft][ftc=#ED008C]罙[/ft][ftc=#EE1000]深[/ft] [ftc=#FFF100]祝[/ft][ftc=#37B400]福[/ft][ftc=#00AEEF]…[/ft]
[ftc=#ED008C]◎[/ft] [ftc=#EE1D24]⊙[/ft].[ftc=#FFFDE0]你[/ft][ftc=#00AEEF]一[/ft][ftc=#00A99E]定 [/ft][ftc=#EE1D24]要[/ft][ftc=#F16D7E]幸福[/ft][/M]
[M][fts=5][ftc=#8000ff]..●.. ..●..
[ftc=#80ff00].●˙ ˙●˙ ˙●.
[ftc=#0080ff].●[fts=6][B] [fts=5] ●.
[ftc=#00bff3].● 提前预祝中秋节 ●.
[ftc=#ed008c].●[fts=6][B] [fts=5] ●.
[ftc=#fff799]●. .●
[ftc=#f16d7e] ●. .●
[ftc=#d3f1fd] ●. .●
[ftc=#ee1000][fts=2] ˙●˙
[M] ˙[fts=4]
[M][fts=5][ftc=#8000ff]..●.. ..●..
[ftc=#80ff00].●˙ ˙●˙ ˙●.
[ftc=#0080ff].●[fts=6][B] [fts=5] ●.
[ftc=#00bff3].● 快乐 ●.
[ftc=#ed008c].●[fts=6][B] 幸福 [fts=5] ●.
[ftc=#fff799]●. 美满 .●
[ftc=#f16d7e] ●. .●
[ftc=#d3f1fd] ●. .●
[ftc=#ee1000][fts=2] ˙●˙
如果是网站你可以去也可以直接去百度里搜索也很多哦!
顺便也祝你中秋节快乐(*^__^*) 嘻嘻……
这是C++的写法 我想要java写法
public class Solve {
public static void toSolveQuestion(String yourMethod){
String method1 = "百度一下,等待别人提供现成代码";
String method2 = "努力思考,查资料,请教老师同学";
if (yourMethod.equals(method1)) {
System.out.println("想不劳而获,还是醒醒吧,去努力吧,骚年!");
}else if (yourMethod.equals(method2)){
System.out.println("解决问题之时,你获得满足感和知识,加油!");
}
}
public static void main(String[] args) {
String yourMethod = "";//初始化你的方法,怎么做由你决定
Solve.toSolveQuestion(yourMethod);
}
}
求个小代码,一打开全屏幕就是玫瑰花飘飘的,过几秒后就现在中秋快乐。
java jsp的啊
第一个:把如下代码加入body区域中,设置文字的话你自己弄吧
style
.drop { position: absolute; width: 3; filter: flipV(), flipH(); font-size: 40; color: blue }
/style
script language="javascript"
snow = false; // false-rain; true-snow
snowsym = " * " //These are the symbols for each
rainsym = " * " //You can put images here.
howmany = 15 //How many drops/snowflakes?
/**************Do not need to change anything below***********/
if(snow){sym = snowsym; speed=1; angle=10; drops=howmany}
else{sym = rainsym; speed=50; drops=howmany; angle=6}
movex = -speed/angle; movey = speed; count = 0;
function moverain(){
for(move = 0; move drops; move++){
xx[move]+=movex; yy[move]+=mv[move];
hmm = Math.round(Math.random()*1);
if(xx[move] 0){xx[move] = maxx+10;}
if(yy[move] maxy){yy[move] = 10;}
drop[move].left = xx[move]
drop[move].top = yy[move]+document.body.scrollTop;
}setTimeout('moverain()','1')}
/script
script language="javascript"
if (document.all){
drop = new Array(); xx = new Array(); yy = new Array(); mv = new Array()
ly = "document.all[\'"; st = "\'].style"
for(make = 0; make drops; make++){
document.write('div id="drop'+make+'" class=drop'+sym+'/div');
drop[make] = eval(ly+'drop'+make+st);
maxx = document.body.clientWidth-40
maxy = document.body.clientHeight-40
xx[make] = Math.random()*maxx;
yy[make] = -100-Math.random()*maxy;
drop[make].left = xx[make]
drop[make].top = yy[make]
mv[make] = (Math.random()*5)+speed/16;
drop[make].fontSize = (Math.random()*10)+20;
if(snow){col = 'white'}else{col = 'blue'}
drop[make].color = col;
}
window.onload=moverain
}
/script
第二种:建议你用这个,你可以在加几个图片
脚本说明:
第一步:把如下代码加入body区域中
script language="JavaScript"
!--
Pic=new Array('photo/04261.gif','photo/04262.gif','photo/04263.gif','photo/04264.gif','photo/04265.gif')
//Smoothness of animation depends on the number of images and they're file size.
MaxSpeed=5;
MinSpeed=2;
load = new Array()
for(i=0; i Pic.length; i++)
{
load[i] = new Image();
load[i].src = Pic[i];
}
amount=Pic.length;
ns=(document.layers)?1:0;
if (ns){
for (i=0; i amount; i++){
document.write("LAYER NAME='netscape"+i+"' LEFT=0 TOP=0img name='netpics' src="+load[i].src+"/LAYER")}
}
else{
document.write("div style='position:absolute;top:0px;left:0px'div style='position:relative'");
for (i=0; i amount; i++){
document.write("img id='explorer' src='"+load[i].src+"' style='position:absolute;top:0px;left:0px'")}
document.write("/div/div")
}
VB=0;
HB=0;
R=new Array();
PB=new Array();
RD=new Array();
Y=new Array();
X=new Array();
D=new Array();
SP=new Array();
BY=new Array();
BX=new Array();
for (i=0; i amount; i++){
Y[i]=10;
X[i]=10;
D[i]=Math.floor(Math.random()*70+10);
SP[i]=Math.floor(Math.random()*MaxSpeed+MinSpeed);
}
function Curve(){
plusMinus=new Array(1,-1,2,-2,3,-3,0,1,-1,0,5,-5)
for (i=0; i amount; i++){
R[i]=Math.floor(Math.random()*plusMinus.length);
RD[i]=plusMinus[R[i]];
}
setTimeout('Curve()',1500);
}
function MoveRandom(){
var H=(document.layers)?window.innerHeight:document.body.clientHeight;
var W=(document.layers)?window.innerWidth:document.body.clientWidth;
var YS=(document.layers)?window.pageYOffset:document.body.scrollTop;
var XS=(document.layers)?window.pageXOffset:document.body.scrollLeft;
for (i=0; i amount; i++){
BY[i]=-load[i].height;
BX[i]=-load[i].width;
PB[i]=D[i]+=RD[i];
y = SP[i]*Math.sin(PB[i]*Math.PI/180);
x = SP[i]*Math.cos(PB[i]*Math.PI/180);
if (D[i] 0) D[i]+=360;
Y[i]+=y;
X[i]+=x;
VB=180-D[i];
HB=0-D[i];
//Corner rebounds! not necessary but looks nice.
if ((Y[i] 1) (X[i] 1)) {Y[i]=1;X[i]=1;D[i]=45;}
if ((Y[i] 1) (X[i] W+BX[i])) {Y[i]=1;X[i]=W+BX[i];D[i]=135;}
if ((Y[i] H+BY[i]) (X[i] 1)) {Y[i]=H+BY[i];X[i]=1;D[i]=315;}
if ((Y[i] H+BY[i]) (X[i] W+BX[i])) {Y[i]=H+BY[i];X[i]=W+BX[i];D[i]=225;}
//Edge rebounds!
if (Y[i] 1) {Y[i]=1;D[i]=HB;}
if (Y[i] H+BY[i]) {Y[i]=H+BY[i];D[i]=HB;}
if (X[i] 1) {X[i]=1;D[i]=VB;}
if (X[i] W+BX[i]) {X[i]=W+BX[i];D[i]=VB;}
var layer=(document.layers)?document.layers['netscape'+i]:explorer[i].style;
layer.top=Y[i]+YS;
layer.left=X[i]+XS;
}
setTimeout('MoveRandom()',10);
}
function sTaRt(){Curve();MoveRandom()}
//--
/script
第二步:
把如下代码加入body区域中body bgcolor="#ffffff" onLoad="if (document.all||document.layers) sTaRt()"
第三个:这个是文字的显示,你自己决定采用上面那个后加进去
脚本说明:
第一步:把如下代码加入body区域中
script LANGUAGE="JavaScript"
function init() {
setTimeout("shake(3)",1000);
// setTimeout("this.focus()",4000);
setTimeout("shake(3)",4100);
}
function shake(n) {
if (self.moveBy) {
for (i = 10; i 0; i--) {
for (j = n; j 0; j--) {
self.moveBy(0,i);
self.moveBy(i,0);
self.moveBy(0,-i);
self.moveBy(-i,0);
}
}
}
setTimeout("shake(5)", 5000);
}
/script
script language="JavaScript"
!-- begin
var max=0;
function textlist()
{
max=textlist.arguments.length;
for (i=0; imax; i++)
this[i]=textlist.arguments[i];
}
tl=new textlist
(
"李鹏会见安得拉邦首席部长奈杜",
"述评:发展新世纪睦邻友好合作关系",
"我国外汇储备已达一千六百五十六亿美元 ",
"人民日报18日社论:推进新的农业科技革命 ",
"“神舟二号”飞船轨道舱留轨继续进行空间科学探测试验",
"联合国证实贫铀弹含有铀-236",
"罗伯逊称北约将继续东扩",
"巴方指责以色列暗杀其高级官员 ",
"亚太议会论坛第九届年会在智利开幕",
"专电:布什宣誓就职典礼准备就绪",
"专电:布什宣誓就职典礼准备就绪 "
);
var x=0; pos=0;
var l=tl[0].length;
function textticker()
{
document.tickform.tickfield.value=tl[x].substring(0,pos)+"_";
if(pos++==l)
{
pos=0;
setTimeout("textticker()",1000);
x++;
if(x==max) x=0; l=tl[x].length;
}
else
setTimeout("textticker()",50);
}
// end --
/script
form name="tickform"input type=text name="tickfield" size=33/form
第二步:把如下代码加入body区域中body bgcolor=#000000" onload="init();textticker()"
能把你的就这么多了 看你的了
网站栏目:java中秋祝福代码 java新年祝福代码
本文来源:http://myzitong.com/article/hgosph.html