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

📄 ch2ex14.java

📁 JAVA程序设计 丁岳伟 彭敦陆编著 高等教育出版社示例代码可供JAVA初学者学习
💻 JAVA
字号:
public class ch2ex14{
	public static void main(String[]args){
		int x=10;
		int y=-13;
		//find max of x,y
		int l=Math.max(x,y);
		System.out.println(l);
		//find the absolute of y
		l=Math.abs(y);
		System.out.println(l);
		//compute 3 to the power of 4
		double t=Math.pow(3,4);
		System.out.println(t);
		//test round
		l=(int)(Math.round(3.55));
		System.out.println(l);
	}
}

⌨️ 快捷键说明

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