Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class WeatherForecast_09 {
- public static void main(String[] args) {
- Scanner input = new Scanner(System.in);
- String weather = input.nextLine();
- if(weather == "sunny"){
- System.out.println("It's warm outside!");
- }else{
- System.out.println("It's cold outside!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement