+ 1

Can you Write a code show " i love Palastin" with if and else

6th Jul 2017, 5:40 PM
‎سعدالدين نواورية‎
‎سعدالدين نواورية‎ - avatar
6 Respostas
+ 13
// Have a nice day ^^ final class DoILoveYou { public static void main(String[] args) { boolean i = false||true; if(i) { System.out.print("I love Palastin"); } else { System.out.print("I hate Palastin"); } } }
6th Jul 2017, 6:01 PM
Dev
Dev - avatar
+ 13
@saad It prints out "I love palastin" with the use of if else condition, isn't this what you wanted?
6th Jul 2017, 6:20 PM
Dev
Dev - avatar
+ 4
The question was to vague so if what Dayve wrote isn't what you wanted there's really nothing we can do except guess. Please make sure your questions are clear, as there is hundreds of ways to write this 'code'. It would be preferred if you showed your code and asked for help on the problem. Or, asked how to do something or how something works.That way we aren't just writing a program for you and you can learn from it.
6th Jul 2017, 8:32 PM
Rrestoring faith
Rrestoring faith - avatar
+ 1
Maybe you are profitional in code but in humain case we never say "i hate palastin // we support palastin final class I relly love palastin {public static void main (String [] age) { Boolean i = true||false; If(i) { System.out.println(" i love palastin ") ; } else{ System.out.println (" Really !? ¿¡") ; }}}
6th Jul 2017, 9:58 PM
‎سعدالدين نواورية‎
‎سعدالدين نواورية‎ - avatar
0
Relly ? The soconde position is that you hate my palastin 😢
6th Jul 2017, 6:16 PM
‎سعدالدين نواورية‎
‎سعدالدين نواورية‎ - avatar
0
You dont tuch what i want
6th Jul 2017, 6:18 PM
‎سعدالدين نواورية‎
‎سعدالدين نواورية‎ - avatar