import java.util.Scanner;
publicclass Ex38 {
publicstaticvoid main(String [] args)
{
Scanner s =
new Scanner(System.
in);
System.
out.println("請輸入一個字符串");
String mys= s.next();
System.
out.println(
str_len(mys));
}
publicstaticint str_len(String x)
{
return x.length();
}
}
*