StringTest
所属分类:Java编程
开发工具:Java
文件大小:1KB
下载次数:14
上传日期:2010-03-14 23:57:19
上 传 者:
youknow2
说明: 编写一个Java应用程序,实现如下功能:
1)判断两个字符串是否相同,s1=”you are a student”,s2=”how are you”;
2)判断字符串”22030219851022024”的前缀、后缀是否和某个字符串”220302”相同;
3)按字典顺序比较两个字符串”你”和”我”的大小关系;
4)将数字型字符串”100”和”123.678”转换为数字;
5)将字符串”FEDCBA”存放到数组中,调用for循环读出数组数据显示在屏幕上。
(Write a Java application, to achieve the following functions: 1) to determine whether the same two strings, s1 = " you are a student" , s2 = " how are you" 2) to determine the string " 22030219851022024" prefix, suffix whether and a string " 220,302" the same 3) according to the dictionary in order to compare two strings " you" and " me" the size of the relationship 4) the numeric string " 100" and " 123.678" conversion to digital 5 ) will be the string " FEDCBA" store to the array, calling for loop to read out an array of data displayed on the screen.)
文件列表:
StringTest.java (1746, 2009-10-30)
近期下载者:
相关文件:
收藏者: