⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 math.java

📁 对基本数组的转换
💻 JAVA
字号:
import java.io.*;
public class math{
public static void main(String args[]){
int m=0;
char op=' ';
int x=Integer.parseInt(args[0]);
int y=Integer.parseInt(args[1]);
try{
System.out.println("请输入运算符:");
 op=(char)System.in.read();
}catch(IOException e){}
if(op=='+')m=x+y;
else if(op=='-')m=x-y;
else if(op=='*')m=x*y;
else if(op=='/')m=x/y;
else if(op=='%')m=x%y;
System.out.println("x"+op+"y="+m);
}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -