View Single Post
  #8 (permalink)  
Old 01-22-2008, 03:55 AM
Wizard wusa Wizard wusa is offline
Member
 
Join Date: Jan 2008
Posts: 10
Wizard wusa is on a distinguished road
Ok good news and bad news, I got the errors gone BUT now when it runs the output is nothing. Why is this?

Heres my code now

Code:
package firstproject; import java.util.*; public class Main { public static void main(String[] args) {} String status; int speed; float Temperature; void checkTemperature() { if (Temperature > 660) { status = "returning home"; speed = 5; } } void showAttributes() { System.out.println("Status: " + status); System.out.println("Speed: " + speed); System.out.println("Temperature: " + Temperature); } }
I switched where i put the '}' bracket to fix the errors. But now like I said the programs output is nothing.
Reply With Quote