喲,我正在嘗試用Java編寫一個程序,它只用字符串和indexOf從字符串中分離單詞。我已經制作了這個代碼,它運行得幾乎完美,但是在打印完單詞之後,它會打印出很多空行。 class wordSep{
public static void main(String args[]){
String line = "The world is full of strangers";
我想在editText中的一個千分隔符(,),當我在editText鍵入。 之後,我會對數字進行一些操作,然後在千位分隔符(,)的TextView中顯示結果。 這是我的代碼: public class Mainactivity extends Activity {
/** Called when the activity is first created. */
EditText edt