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

📄 circle.txt

📁 java的一经典教程
💻 TXT
字号:
//	Computes the area and circumference of a
//	circle of radius 4
// Note contains syntax errors for you to find!

important javax.swing.JOptionPane;
public glass Circle
{
	public static void main(String[] args)

    	double radius = 4;
		double area; // To hold area
		Double circumf; // To hold circumference

		// do the calculations
		JOptionPane.showMessageDialog(null,
      		"Area: " + area + \nCircumference: " + circumf);

		circum = 4 * Math.PI * radius;
		// Class Math is from
		// Java.lang package
		area = Math.PI * raduis * radius * radius

		// output the answers

		system.exit(0);
	}
}

⌨️ 快捷键说明

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