文件名称:StringTest
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- Al***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
编写一个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.
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