import java.io.*;
public class hello8
{
public static void main(String args[])throws NumberFormatException,
IOException
{
String s=" ";
char a=' ';
int h,i,j;
h=i=j=0;
System.out.println("ÇëÊäÈëÒ»¸ö×Ö·û´®£º");
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
s=br.readLine();
for(int f=0;f <s.Lenght();f++){
a=charAt(f);
if(a>'a'&&a <'z')
h++;
else
if(a>'0'&&a <'9')
i++;
else
j++;
}
System.out.println("×Öĸ"+h+"¸ö");
System.out.println("Êý×Ö"+i+"¸ö");
System.out.println("ÆäËû×Ö·û"+j+"¸ö");
}
}
Õâ¸ö×ÜÊdzöÏÖÕâ¸ö´íÎó£º
c:\java>javac hello8.java
hello8.java:15: ÕÒ²»µ½·ûºÅ
·ûºÅ£º ·½·¨ Lenght()
λÖ㺠Àà java.lang.String
for(int f=0;f <s.Lenght();f++
^
hello8.java:16: ÕÒ²»µ½·ûºÅ
·ûºÅ£º ·½·¨ charAt(int)
λÖ㺠Àà hello8
a=charAt(f);
Ïà¹ØÎÊ´ð£º
µ±ÖªµÀÒ»¸öÈÕÆÚ£¬ÈçºÎ°ÑÕâ¸öÈÕÆÚËùÔÚÑ®µÄǰºóÁ½¸öÈÕÆÚÈ¡³ö
±ÈÈçÊäÈë20090905£¬¾ÍÊäÈë20090901 20090910
Êä³ö20090901 20090910
È¡µÃÌìÊýºó×÷Ò»ÏÂÅжÏÔÙ°ÑÕâ¸ö·½·¨ÓÃÏÂvoid set(int field, int value)
......
ÎÒÏÖÔÚÓÃstruts2¿ò¼Ü,ÐèҪʹÓÃajaxʵÏÖ¾Ö²¿Ë¢Ð£¬µ«ÊÇ´ÓÈÝÆ÷Àï·µ»ØµÄÖµ²»ÖªµÀÔõô´Óstruts.xmlÅäÖÃÎļþÀïÓ³Éäµ½jspÒ³ÃæÀÒÔǰservletÀïдout.orint("xxxxx")¾Í¿ÉÒԵõ½~£¬µ«ÊÇÏÖÔÚÓÃstruts¾Í²»ÖªµÀÔõôР......
private static final String URL = "jdbc:oracle:thin:@localhost:1521:orcl";
private static final String USERNAME = "sys";
private static final String PASSWORD = "s ......
ÒªÇóÊÇÊäÈëÒ»¸öÊý×Ö£¬È»ºó°´ÕÕÏÂÃæµÄ·½Ê½Êä³ö£¨Ë³Ê±ÕëÐýת£©
±ÈÈç ÊäÈë 2
ÔòÊä³öΪ
1 2 3
8 9 4
7 6 5
ÊäÈë 6
ÔòÊä³öΪ
1 2 3 4 5 6
20 21 22 23 24 7
19 32 33 34 25 8
18 31 36 ......
rt£¬ÎÒÊÔÁËÍøÉÏÖ±Á¬AccesÊý¾Ý¿âµÄ·½·¨,windowsÏÂûÓÐÎÊÌâ,µ«ÊÇÔÚlinuxϲ»ÐУ¬ËÄܸøµãÌáʾ£¿Ð»Ð»
ÄãÔõôÁ¬µÄ£¿
AccesÊý¾Ý¿â..
ÄãÔõôÁ·µÄÄØ£¿
Java code:
static String DBDRIVER = "sun.jd ......