Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //this is runweather.java
- public class runweather {
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- int hitemp = weather.getHiTemp();
- int lowtemp = weather.getLoTemp();
- double madwata = weather.getPrecipitation();
- String thedate = weather.getDate();
- System.out.println("Welcome to the weather program!");
- System.out.println(thedate);
- System.out.println("High Temp: " +hitemp);
- System.out.println("Low Temp: " +lowtemp);
- System.out.println("Precipitation: " +madwata +" inches.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement