fork download
  1. class ideone{
  2. public static void main(String[] args){
  3. String 포유류 = "늑대";
  4. String 파충류 = "도마뱀";
  5.  
  6. if(포유류.equals("호랑이")){
  7. System.out.println("포유류");
  8. }
  9. else if(파충류.equals("도마뱀")){
  10. System.out.println("파충류");
  11. }
  12. else{
  13. System.out.println("데이터가 없습니다.");
  14. }
  15. }
  16. }
Success #stdin #stdout 0.1s 54764KB
stdin
Standard input is empty
stdout
파충류