java0i
發布時間: 2023-01-31 13:26:04
㈠ java中如何將o轉化成0 又如何將i轉化成1
String[] s={"o","i","i","i","o","o","o"};
for(int i=0;i<s.length;i++){
if(s[i]=="o"){
s[i]="0";
}
if(s[i]=="i"){
s[i]="1";
}
}
熱點內容
㈠ java中如何將o轉化成0 又如何將i轉化成1
String[] s={"o","i","i","i","o","o","o"};
for(int i=0;i<s.length;i++){
if(s[i]=="o"){
s[i]="0";
}
if(s[i]=="i"){
s[i]="1";
}
}