java实现生日贺卡代码,Java生日快乐代码

今天我女朋友的生日谁给段漂亮的祝福生日快乐的Java代码 无限感激

用java写的话 要做得很好 已经来不及了

成都创新互联专注于企业全网整合营销推广、网站重做改版、开原网站定制设计、自适应品牌网站建设、H5建站成都商城网站开发、集团公司官网建设、成都外贸网站建设公司、高端网站制作、响应式网页设计等建站业务,价格优惠性价比高,为开原等各大城市提供网站开发制作服务。

我建议你用ZineMaker 2006做一个杂志 可以做得很漂亮 可以加她照片、背景音乐加特殊效果等等 她看见了肯定会感动的

这里一个常见的 也给你

html

head

title一切皆有可能/title!--这里是标题--

hta:application sysmenu=no scroll=no border=none

script language="vc"

sub sub1

me.close

end sub

me.resizeto 500,410 '这里设置窗口大小,单位为像素

me.moveto 260,100 '这里设置窗口位置,单位为像素

window.settimeout "sub1",100000 '这是设置时间,单位为毫秒,我这里设置为12秒

/script

body

CENTER

FONT style="COLOR:#33FF00; FILTER: shadow(color=black); FONT-FAMILY: 华文彩云; FONT-SIZE: 30pt; LINE-HEIGHT: 150%; WIDTH: 100%"B一切皆有可能/B/FONT/CENTER

hr

style type="text/css"

.3dfont { FILTER: glow(color=ffffff,strength=0) shadow(color=cccccc,direction:135); POSITION: relative; WIDTH: 100% }

/style

table border="0" width="100%"

tr

td width="100%" class="3dfont"font color=REDCENTER ☆☆☆☆☆☆ 献给最亲爱的你 ☆☆☆☆☆☆/font

br

P align=left

★一切皆有可能!/Bbrbr

一切皆有可能!/Bbrbr

MARQUEE希望大家多多支持!!!/body

/html

用JAVA编写一个简单的生日提醒器,源代码该怎么写啊?

获取系统时间:

import java.util.*;

import java.text.*;

public class TestDate {

public static void main(String[] args) {

Calendar ca = Calendar.getInstance();

int year = ca.get(Calendar.YEAR);//获取年份

int month=ca.get(Calendar.MONTH);//获取月份

int day=ca.get(Calendar.DATE);//获取日

int minute=ca.get(Calendar.MINUTE);//分

int hour=ca.get(Calendar.HOUR);//小时

int second=ca.get(Calendar.SECOND);//秒

int WeekOfYear = ca.get(Calendar.DAY_OF_WEEK);

}

用系统时间跟生日比较就行了

用Java的Date类输入一个人的生日并输出,求代码。

//生日字符串和整型

String birthDateString = "1999-09-09";

int year = 1999;

int month = 9;

int day = 9;

//将字符串转换为Date

DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");

//dateFormat = DateFormat.getInstance();

Date birthDate = dateFormat.parse(birthDateString);

System.out.println(birthDate);

//构建Date,已不推荐使用。年份从1900年开始,月份从0开始

birthDate = new Date(year - 1900, month - 1, day);

System.out.println(birthDate);

//Calendar类,月份从0开始

Calendar calendar = Calendar.getInstance();

calendar.set(Calendar.YEAR, year);

calendar.set(Calendar.MONTH, month- 1);

calendar.set(Calendar.DAY_OF_MONTH, day);

calendar.set(Calendar.HOUR_OF_DAY, 0); //设置时分秒

calendar.set(Calendar.MINUTE, 0);//设置时分秒

calendar.set(Calendar.SECOND, 0);//设置时分秒

calendar.set(Calendar.MILLISECOND, 0);//毫秒。。。

System.out.println(calendar.getTime());


本文标题:java实现生日贺卡代码,Java生日快乐代码
网站URL:http://lszwz.com/article/phihgc.html

其他资讯

售后响应及时

7×24小时客服热线

数据备份

更安全、更高效、更稳定

价格公道精准

项目经理精准报价不弄虚作假

合作无风险

重合同讲信誉,无效全额退款