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";
}
}