Advertisement
GazaIan

Untitled

Feb 6th, 2015
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.56 KB | None | 0 0
  1. //this is runweather.java
  2.  
  3.  
  4. public class runweather {
  5.  
  6.     public static void main(String[] args) {
  7.         // TODO Auto-generated method stub
  8.        
  9.         int hitemp = weather.getHiTemp();
  10.         int lowtemp = weather.getLoTemp();
  11.         double madwata = weather.getPrecipitation();
  12.         String thedate = weather.getDate();
  13.        
  14.         System.out.println("Welcome to the weather program!");
  15.         System.out.println(thedate);
  16.         System.out.println("High Temp: " +hitemp);
  17.         System.out.println("Low Temp: " +lowtemp);
  18.         System.out.println("Precipitation: " +madwata +" inches.");
  19.     }
  20.  
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement