String X="this is an exercise. A happy Day"
1.去掉空格
2. a->@, e->'您'
3 改大寫
4 取子字串4~8
5. 字串反轉
herrDeng網內搜尋
 
  
    自訂搜尋
  
Ads
訂閱:
張貼留言 (Atom)
熱門文章
- 
url="https://www.twse.com.tw/exchangeReport/STOCK_DAY?response=json&date=20220330&stockNo=2330"
- 
連續複利
- 
請用Random產生20個0~99的奇數(可重複),然後排序
- 
py3 cpp Line sweep解Leetcode 3346 Maximum Frequency of an Element After Performing Operations I 使用 line sweep不用排序,可得線性解 [Py3解請進]
- 
C++ Py3 計數排序與partial sum解Leetcode 2300 Successful Pairs of Spells and Potions Portions的極大值小於等於10萬是可進行記數排序的關鍵,既然可以採用記數排序,後面的二元搜尋也可以透過part...
- 
Py3 C++ C 2pointer速解Leetcode 11Container With Most Water [Py3 code請進]
- 
輸入公元n年,輸出"平年" "閏年"
- 
Py3 C++計數bitmask與2 pointers速解Leetcode2273 Find Resultant Array After Removing Anagrams 字串長度最長也只有10,四個bits一組,用bitmask解題 ----- The maximum le...
 
 
 
30 則留言:
public class ex2 { public static void main(String[] args) { String x="this is an exercise. A happy Day"; System.out.println(x); System.out.println(x.replace(" ","")); x=x.replace(" ",""); System.out.println(x.replace("a","@")); x=x.replace("a","@"); System.out.println(x.replace("e","您")); x=x.replace("e","您"); System.out.println(x.toUpperCase()); x=x.toUpperCase(); System.out.println(x.substring(4,9)); x=x.substring(4,9); char xx[]=x.toCharArray(); for(int i=xx.length-1; i>=0; i--) System.out.print(xx[i]); }}
public class Z { public static void main(String[] args) { String x ="this is an exercise. A happy Day"; System.out.println(x.replace(" ", "")); x=x.replace(" ", ""); x=(x.replace("a", "@")); System.out.println(x.replace("e","您")); x=x.replace("e","您"); System.out.println(x.toUpperCase()); x=x.toUpperCase(); System.out.println(x.substring(4, 9)); x=x.substring(4, 9); char []xx=x.toCharArray(); for(int i=x.length()-1;i>=0;i--) System.out.print(xx[i]); }}
public class exex09 {
public static void main(String[] args) { String X="this is an exercise. A happy Day"; X=X.replace(" ", ""); System.out.println(X); X=X.replace('a','@'); X=X.replace('e','您'); System.out.println(X); X=X.toUpperCase(); System.out.println(X); X=X.substring(4,9); System.out.println(X); char []XX=X.toCharArray(); for(int i=XX.length-1; i>=0; i--) System.out.print(XX[i]); System.out.println();
public class a1204 {
public static void main(String[] args) { String X="this is an exercise. A happy Day"; X=X.replace(" ",""); System.out.println(X); X=X.replace('a','@'); X=X.replace('e','您'); System.out.println(X); X=X.toUpperCase(); System.out.println(X); X=X.substring(4,9); System.out.println(X); char []XX=X.toCharArray(); for(int i=XX.length-1; i>=0; i--) System.out.print(XX[i]); System.out.println(); }
}
}
public class a1204 {
public static void main(String[] args) { String X="this is an exercise. A happy Day"; X=X.replace(" ",""); System.out.println(X); X=X.replace('a','@'); X=X.replace('e','您'); System.out.println(X); X=X.toUpperCase(); System.out.println(X); X=X.substring(4,9); System.out.println(X); char []XX=X.toCharArray(); for(int i=XX.length-1; i>=0; i--) System.out.print(XX[i]); System.out.println(); }
}
public class a1204 {
public static void main(String[] args) { String X="this is an exercise. A happy Day"; X=X.replace(" ",""); System.out.println(X); X=X.replace('a','@'); X=X.replace('e','您'); System.out.println(X); X=X.toUpperCase(); System.out.println(X); X=X.substring(4,9); System.out.println(X); char []XX=X.toCharArray(); for(int i=XX.length-1; i>=0; i--) System.out.print(XX[i]); System.out.println(); }
}
public class a1204 {
public static void main(String[] args) { String X="this is an exercise. A happy Day"; X=X.replace(" ",""); System.out.println(X); X=X.replace('a','@'); X=X.replace('e','您'); System.out.println(X); X=X.toUpperCase(); System.out.println(X); X=X.substring(4,9); System.out.println(X); char []XX=X.toCharArray(); for(int i=XX.length-1; i>=0; i--) System.out.print(XX[i]); System.out.println(); }
}
public class a1204 {
public static void main(String[] args) { String X="this is an exercise. A happy Day"; X=X.replace(" ",""); System.out.println(X); X=X.replace('a','@'); X=X.replace('e','您'); System.out.println(X); X=X.toUpperCase(); System.out.println(X); X=X.substring(4,9); System.out.println(X); char []XX=X.toCharArray(); for(int i=XX.length-1; i>=0; i--) System.out.print(XX[i]); System.out.println(); }
}
public class a1204 {
public static void main(String[] args) { String X="this is an exercise. A happy Day"; X=X.replace(" ",""); System.out.println(X); X=X.replace('a','@'); X=X.replace('e','您'); System.out.println(X); X=X.toUpperCase(); System.out.println(X); X=X.substring(4,9); System.out.println(X); char []XX=X.toCharArray(); for(int i=XX.length-1; i>=0; i--) System.out.print(XX[i]); System.out.println(); }
}
public class a1204 {
public static void main(String[] args) { String X="this is an exercise. A happy Day"; X=X.replace(" ",""); System.out.println(X); X=X.replace('a','@'); X=X.replace('e','您'); System.out.println(X); X=X.toUpperCase(); System.out.println(X); X=X.substring(4,9); System.out.println(X); char []XX=X.toCharArray(); for(int i=XX.length-1; i>=0; i--) System.out.print(XX[i]); System.out.println(); }
}
public class a1204 {
public static void main(String[] args) { String X="this is an exercise. A happy Day"; X=X.replace(" ",""); System.out.println(X); X=X.replace('a','@'); X=X.replace('e','您'); System.out.println(X); X=X.toUpperCase(); System.out.println(X); X=X.substring(4,9); System.out.println(X); char []XX=X.toCharArray(); for(int i=XX.length-1; i>=0; i--) System.out.print(XX[i]); System.out.println(); }
}
public class a1204 {
public static void main(String[] args) { String X="this is an exercise. A happy Day"; X=X.replace(" ",""); System.out.println(X); X=X.replace('a','@'); X=X.replace('e','您'); System.out.println(X); X=X.toUpperCase(); System.out.println(X); X=X.substring(4,9); System.out.println(X); char []XX=X.toCharArray(); for(int i=XX.length-1; i>=0; i--) System.out.print(XX[i]); System.out.println(); }
}
package gg;
public class as9 {
public static void main(String[] args) { String x="this is an exercise. A happy Day"; System.out.println(x); x=x.replace(" ",""); x=x.replace("a","@"); x=x.replace('e','你'); x=x.toUpperCase(); x=x.substring(4,9); System.out.println(x); char []xx=x.toCharArray(); for(int i=xx.length-1;i>=0;i--){// System.out.println(xx[i]); xx[i]=x.charAt(x.length()-1-i); } String x2= new String (xx); System.out.println(x2); }}
package gg;
public class as9 {
public static void main(String[] args) { String x="this is an exercise. A happy Day"; System.out.println(x); x=x.replace(" ",""); x=x.replace("a","@"); x=x.replace('e','你'); x=x.toUpperCase(); x=x.substring(4,9); System.out.println(x); char []xx=x.toCharArray(); for(int i=xx.length-1;i>=0;i--){ xx[i]=x.charAt(x.length()-1-i); } String x2= new String (xx); System.out.println(x2); }}
public class ex1204 {
public static void main(String[] args) { // TODO Auto-generated method stub String X="this is an exercise. A happy Day"; X=X.replace(" ",""); System.out.println(X); X=X.replace('a', '@'); X=X.replace('e', '您'); System.out.println(X); X=X.toUpperCase(); System.out.println(X); System.out.println(X=X.substring(4, 9)); char XX[]=new char[X.length()]; for(int i=0; i<XX.length; i++){ XX[i]=X.charAt(X.length()-1-i); } String X2=new String(XX); System.out.println(X2); StringBuffer Xb=new StringBuffer(X); Xb.reverse(); X=Xb.toString(); System.out.println(X); }
}
public class d1204 {
public static void main(String[] args) { // TODO Auto-generated method stub String X="this is an exercise. A happy Day"; X=X.replace(" ",""); System.out.println(X); X=X.replace('a','@'); X=X.replace('e','您'); System.out.println(X); X=X.toUpperCase(); System.out.println(X); System.out.println(X=X.substring(4,9)); char XX[]=new char[X.length()]; for(int i=0; i<X.length(); i++){ XX[i]=X.charAt(X.length()-1-i); } String X2=new String(XX); System.out.println(X2); StringBuffer Xb=new StringBuffer(X); Xb.reverse(); X=Xb.toString(); System.out.println(X); }}
public class ex02 { public static void main(String[] args) { String x="this is an exercise. A happy Day"; System.out.println(x); System.out.println(x.replace(" ","")); x=x.replace(" ",""); System.out.println(x.replace("a","@")); x=x.replace("a","@"); System.out.println(x.replace("e","您")); x=x.replace("e","您"); System.out.println(x.toUpperCase()); x=x.toUpperCase(); System.out.println(x.substring(4,9)); x=x.substring(4,9); char xx[]=x.toCharArray(); for(int i=xx.length-1; i>=0; i--) System.out.print(xx[i]); }}
public class ex2 { public static void main(String[] args) { String x="this is an exercise. A happy Day"; System.out.println(x); System.out.println(x.replace(" ","")); x=x.replace(" ",""); System.out.println(x.replace("a","@")); x=x.replace("a","@"); System.out.println(x.replace("e","您")); x=x.replace("e","您"); System.out.println(x.toUpperCase()); x=x.toUpperCase(); System.out.println(x.substring(4,9)); x=x.substring(4,9); char xx[]=x.toCharArray(); for(int i=xx.length-1; i>=0; i--) System.out.print(xx[i]); }}
public class ex2 { public static void main(String[] args) { String x="this is an exercise. A happy Day"; System.out.println(x); System.out.println(x.replace(" ","")); x=x.replace(" ",""); System.out.println(x.replace("a","@")); x=x.replace("a","@"); System.out.println(x.replace("e","您")); x=x.replace("e","您"); System.out.println(x.toUpperCase()); x=x.toUpperCase(); System.out.println(x.substring(4,9)); x=x.substring(4,9); char xx[]=x.toCharArray(); for(int i=xx.length-1; i>=0; i--) System.out.print(xx[i]); }}
public class ex2 { public static void main(String[] args) { String x="this is an exercise. A happy Day"; System.out.println(x); System.out.println(x.replace(" ","")); x=x.replace(" ",""); System.out.println(x.replace("a","@")); x=x.replace("a","@"); System.out.println(x.replace("e","您")); x=x.replace("e","您"); System.out.println(x.toUpperCase()); x=x.toUpperCase(); System.out.println(x.substring(4,9)); x=x.substring(4,9); char xx[]=x.toCharArray(); for(int i=xx.length-1; i>=0; i--) System.out.print(xx[i]); }}
public class ex1204 {
public static void main(String[] args) { // TODO Auto-generated method stub String X="this is an exercise. A happy Day"; X=X.replace(" ",""); System.out.println(X); X=X.replace('a', '@'); X=X.replace('e', '您'); System.out.println(X); X=X.toUpperCase(); System.out.println(X); System.out.println(X=X.substring(4, 9)); char XX[]=new char[X.length()]; for(int i=0; i<XX.length; i++){ XX[i]=X.charAt(X.length()-1-i); } String X2=new String(XX); System.out.println(X2); StringBuffer Xb=new StringBuffer(X); Xb.reverse(); X=Xb.toString(); System.out.println(X); }}
public class ex2 { public static void main(String[] args) { String x="this is an exercise. A happy Day"; System.out.println(x); System.out.println(x.replace(" ","")); x=x.replace(" ",""); System.out.println(x.replace("a","@")); x=x.replace("a","@"); System.out.println(x.replace("e","您")); x=x.replace("e","您"); System.out.println(x.toUpperCase()); x=x.toUpperCase(); System.out.println(x.substring(4,9)); x=x.substring(4,9); char xx[]=x.toCharArray(); for(int i=xx.length-1; i>=0; i--) System.out.print(xx[i]); }}
public class ex2 { public static void main(String[] args) { String x="this is an exercise. A happy Day"; System.out.println(x); System.out.println(x.replace(" ","")); x=x.replace(" ",""); System.out.println(x.replace("a","@")); x=x.replace("a","@"); System.out.println(x.replace("e","您")); x=x.replace("e","您"); System.out.println(x.toUpperCase()); x=x.toUpperCase(); System.out.println(x.substring(4,9)); x=x.substring(4,9); char xx[]=x.toCharArray(); for(int i=xx.length-1; i>=0; i--) System.out.print(xx[i]); }}
public class ex2 { public static void main(String[] args) { String x="this is an exercise. A happy Day"; System.out.println(x); System.out.println(x.replace(" ","")); x=x.replace(" ",""); System.out.println(x.replace("a","@")); x=x.replace("a","@"); System.out.println(x.replace("e","您")); x=x.replace("e","您"); System.out.println(x.toUpperCase()); x=x.toUpperCase(); System.out.println(x.substring(4,9)); x=x.substring(4,9); char xx[]=x.toCharArray(); for(int i=xx.length-1; i>=0; i--) System.out.print(xx[i]); }}
public class ex2 { public static void main(String[] args) { String x="this is an exercise. A happy Day"; System.out.println(x); System.out.println(x.replace(" ","")); x=x.replace(" ",""); System.out.println(x.replace("a","@")); x=x.replace("a","@"); System.out.println(x.replace("e","您")); x=x.replace("e","您"); System.out.println(x.toUpperCase()); x=x.toUpperCase(); System.out.println(x.substring(4,9)); x=x.substring(4,9); char xx[]=x.toCharArray(); for(int i=xx.length-1; i>=0; i--) System.out.print(xx[i]); }}
public class ex2 { public static void main(String[] args) { String x="this is an exercise. A happy Day"; System.out.println(x); System.out.println(x.replace(" ","")); x=x.replace(" ",""); System.out.println(x.replace("a","@")); x=x.replace("a","@"); System.out.println(x.replace("e","您")); x=x.replace("e","您"); System.out.println(x.toUpperCase()); x=x.toUpperCase(); System.out.println(x.substring(4,9)); x=x.substring(4,9); char xx[]=x.toCharArray(); for(int i=xx.length-1; i>=0; i--) System.out.print(xx[i]); }}
public class ex2 { public static void main(String[] args) { String x="this is an exercise. A happy Day"; System.out.println(x); System.out.println(x.replace(" ","")); x=x.replace(" ",""); System.out.println(x.replace("a","@")); x=x.replace("a","@"); System.out.println(x.replace("e","您")); x=x.replace("e","您"); System.out.println(x.toUpperCase()); x=x.toUpperCase(); System.out.println(x.substring(4,9)); x=x.substring(4,9); char xx[]=x.toCharArray(); for(int i=xx.length-1; i>=0; i--) System.out.print(xx[i]); }}
public class ex02 { public static void main(String[] args) { String x="this is an exercise. A happy Day"; System.out.println(x); System.out.println(x.replace(" ","")); x=x.replace(" ",""); System.out.println(x.replace("a","@")); x=x.replace("a","@"); System.out.println(x.replace("e","您")); x=x.replace("e","您"); System.out.println(x.toUpperCase()); x=x.toUpperCase(); System.out.println(x.substring(4,9)); x=x.substring(4,9); char xx[]=x.toCharArray(); for(int i=xx.length-1; i>=0; i--) System.out.print(xx[i]); }}
public class ex2 { public static void main(String[] args) { String x="this is an exercise. A happy Day"; System.out.println(x); System.out.println(x.replace(" ","")); x=x.replace(" ",""); System.out.println(x.replace("a","@")); x=x.replace("a","@"); System.out.println(x.replace("e","您")); x=x.replace("e","您"); System.out.println(x.toUpperCase()); x=x.toUpperCase(); System.out.println(x.substring(4,9)); x=x.substring(4,9); char xx[]=x.toCharArray(); for(int i=xx.length-1; i>=0; i--) System.out.print(xx[i]); }}
public class ex2 { public static void main(String[] args) { String x="this is an exercise. A happy Day"; System.out.println(x); System.out.println(x.replace(" ","")); x=x.replace(" ",""); System.out.println(x.replace("a","@")); x=x.replace("a","@"); System.out.println(x.replace("e","您")); x=x.replace("e","您"); System.out.println(x.toUpperCase()); x=x.toUpperCase(); System.out.println(x.substring(4,9)); x=x.substring(4,9); char xx[]=x.toCharArray(); for(int i=xx.length-1; i>=0; i--) System.out.print(xx[i]); }}
張貼留言