?? string.java
字號:
class string
{
public static void main(String args[])
{
String m="f=a+5";
String n="*";
/*String t1="";//, t2;
while(m.indexOf("*")>=0)
t1=m.substring(0,m.indexOf(n));
System.out.println(t1);*/
//System.out.println(5n6);
if(m.indexOf(n)>=0&&m.indexOf("=")>=0)
System.out.println(1);
else if(m.indexOf("=")>=0)
System.out.println(2);
/*System.out.print(x+"*****");
System.out.println(m.charAt(x));
String t;
t=m.substring(4,m.length());
System.out.println(t);*/
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -