Advertisement
vkarakolev

Untitled

Jun 11th, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class WeatherForecast_09 {
  4.     public static void main(String[] args) {
  5.         Scanner input = new Scanner(System.in);
  6.         String weather = input.nextLine();
  7.         if(weather == "sunny"){
  8.             System.out.println("It's warm outside!");
  9.         }else{
  10.             System.out.println("It's cold outside!");
  11.         }
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement