?? smsutils.java
字號:
package edu.soft.buaa.message.sms;
import java.io.*;
import java.util.*;
import java.text.*;
/**
This class has some general purpose functions.
*/
public class SMSUtils
{
/**
String substitution routine.
@param text the initial text.
@param symbol the string to be substituted.
@param value the string that the "symbol" will be substituted with, in the "text" (all occurences).
@return the changed text.
*/
public static String substituteSymbol(String text, String symbol, String value)
{
StringBuffer buffer;
while (text.indexOf(symbol) >= 0)
{
buffer = new StringBuffer(text);
buffer.replace(text.indexOf(symbol), text.indexOf(symbol) + symbol.length(), value);
text = buffer.toString();
}
return text;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -