<? version="1.0" encoding="utf-8"?>
<!-- //www.hnguotong.com/123.dsd -->
<!-- 道路标牌|郑州标牌厂家|路名牌|郑州路牌厂家|郑州停车场设施|郑州交通设施-->
<hibernate-mapping>
<class name="person" table="personId" type="long"> <id name="pid" length="12" not-null="null">
<generate name="native"/>
...
void main()
{
int a,b,c[10];
//道路标牌|郑州标牌厂家|路名牌|郑州路牌厂家|郑州停车场设施|郑州交通设施
clrscr();
printf("Input ten numbers\n");
for(a=0;a<10;a++)
scanf("%d",&c[a]);
printf("Ten numbers are\n");
for(a=0;a<10;a++)
printf("%4d",c[a]);
printf("\n");
getch();
for(a=0;a...
Response.addCookie(new Cookie(www.hnuotong.com,"jfei"));
request.getCookies(i).getName();
//for循环设置欲登陆功能
Servlet的生存周期
三个过程
1.init
2.service
3.destory
class CheckString{
public CheckString(Object object,String str){
if(Integer instanceof object){
System.out.println("The value is"+object.getValue);
}
else if(object.equals(str)){
System.out.println("The value ...
void main()
{ int a,b,c[10],d;
clrscr();
printf("Input ten numbers\n");
for(a=0;a<10;a++)
scanf("%d",&c[a]);
printf("Ten numbers are\n");
for(a=0;a<10;a++)
printf("%4d",c[a]);
printf("\n");
getch();
for(a=0;a<9;a++)
for(b=0;b<10-a...
Class PingDate{
public void ping(){
System.out.println("welcome to use www.hnguotong.com");
Date d = new Date();
SimpleDateForamt sf = new SimpleDateForamt("yyyy-MM-dd");
System.out.println("Time is"+sf.format(d));
...
<bean id="date" class="com/hnguotong/www" scope="protope">
<property name="jfei" value=""/>
<set>
<property name="value" value="value1"/>
</set>
</bean>
struct stu
{
int name;
char sex;
float payment;
};
void main()
{
struct stu student;
student.name=12;
student.sex='12';
student.payment =12;
printf("%d,%c,%f",student.name,student.sex,student.payment);
}
<?xml struts ?>
<struts>
<include file=""/>
<constants name="com.il8n.encoding" value="utf-8"/>
<constants name="com.hnguotong.www" value="国通交通"/>
<package name="jei" extends="struts-default">
<action name="" class="" method="">
...
class KateTest{
public static void main(String args[]){
menu();
printDate();
}
public static void menu(){
System.out.println("***********************");
System.out.println("郑州国通交通设施有限公司");
...
void main()
{
printPointer();
}
void printPointer()
{
int a,b,c[3][4],(*)p[4]=c;
clrscr();
printf("Input 12 numbers\n");
for(a=0;a<3;a++)
for(b=0;b<4;b++)
// scanf("%d",&c[a][b]);
scanf("%d",*(p+a)+b);
printf("12 numbers ar...
class DataArray{
public static void main(String args[]){
String date ="jfei";
System.out.println(date);
String arg [] = new String[5];
arg[0]="郑州国通交通设施有限公司";
arg[1]="郑州标牌厂家";
arg[2]="郑州路牌厂家";
...
#person{
position:10px,10px,10px,19px
font-size:18px;
color:blue;
text-align:center;
margin-left:18px;
}
session.setAttribute("name","郑州标牌厂家");
session.setAttribute("keywords","郑州路牌厂家");
session.setAttribute("keywords2","郑州停车场设施");
session.setAttribute("keywords3","国通标牌");
session.invalidate();
<!-- web的session -->
import java.swing.*;
import java.awt.*;
class StringDemo extends JFrame{
String key1 ="郑州标牌厂家";
String key2 ="郑州路牌厂家";
String key3 ="郑州停车场设施";
String key4 ="国通标牌";
String key5 ="郑州国通交通设施有限公司";
Label l1,l2,l3,l4,l5;
...
import javax.servlet.http.*;
class LoginServlet extends HttpServlet{
public void init(){
System.out.println("instance of the initalize");
}
public void service(ServletConfig servletConfig)throws ServletException{
public void doGet(...
void main()
{
int a,b[10],*p=b;
clrscr();
printf("Input ten numbers\n");
for(a=0;a<10;a++)
scanf("%d",p+a);
printf("Ten numbers are\n");
for(a=0;a<10;a++)
printf("%4d",*(p+a));
printf("\n");
getch();
}
void printArray()
{
int a ,b[3][4],d;
in...
void printArray()
{
int a,b,c[3][4];
clrscr();
printf("Input 12 numbers\n");
for(a=0;a<3;a++)
for(b=0;b<4;b++)
scanf("%d",&c[a][b]);
printf("12 numbers are\n");
for(a=0;a<3;a++)
for(b=0;b<4;b++)
printf("%4d",c[a][b]);
printf(...
class kingDemo{
public static void main(String args[]){
System.out.println("Input one Character\n");
String s ="jfei";
System.out.println(s.length());
System.out.println(s.charAt(23));
System.out.println();
System.out.println(s.s...