Java第一課


クラスの勉強.
public class oneTen {
	String status;
	int speed;
	float temperature;
	void checTemperature()
	{
		if(temperature>660)
		{
			status="returening home";
			speed=5;
		}
	}
	void showAttributtes()
	{
		System.out.println("status:"+status);
		System.out.println("status:"+speed);
		System.out.println("Temperature:"+temperature);
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		System.out.println("  Hello,It's my first Text.");
	}

}