|
1. | " So in the above example, you can say:String s = new String("asdf"); |
| 所以在上面的例子中,可以说:String s = new String("asdf"); |
|
|
| |
2. | In addition, the String class supports '+' and '+='. |
| 除此以外,String类支持“+”和“+=”。 |
|
|
| |
3. | String constant truncated to fit STRING[%ld] |
| 字符串常量截取到适合STRING[%ld] |
|
|
| |
4. | { String s = new String("a string"); |
| {String s = new String("a string"); |
|
|
| |
5. | int storage(String s) { return s.length() * 2; |
| int storage(String s) {return s.length() * 2; |
|
|
| |
6. | The use of the String + has some interesting behavior. |
| 我们注意到运用“String +”时一些有趣的现象。 |
|
|
| |
7. | Of course, String is not the only type that exists. |
| 当然,字串(String)并非唯一的类型。 |
|
|
| |
8. | So if you want to hold a word or sentence, you create a String reference:String s; |
| 所以如果想容纳一个词或句子,可创建一个String句柄:String s; |
|
|
| |
9. | such as string beans, |
| 如: 扁豆、 |
|
|
| |
10. | She fired off as string of abuse. |
| 她恶狠狠地谩骂了一大串。 |
|
|
| |