package java0822_statement; /* * [ì¶ë ¥ê²°ê³¼] * station = "KBS" , channel = 7 => ë¥í°í¬ì¤í° * station = "KBS" , channel = 9 => êµìì ì * station = "MBC" => 몬ì¤í° * station = "EBS" => íêµê¸°í */ public class Java024_if { public static void main(String[] args) { String station = "KBS"; int channel = 9; if (station == "KBS") { if (channel == 7) { System.out.println("ë¥í°í¬ì¤í°"); } else if (channel == 9) { System.out.println("êµìì ì "); } } else if (station == "MBC") { System.out.println("몬ì¤í°"); } else if (station == "EBS") { System.out.println("íêµ ê¸°í"); } } }