📄 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 + -