Write one console OP statement in one line without any liter
Write one console O/P statement in one line without any literals to display the following sentences in 4 lines by using the variable definitions as these: String s1 = \"I like Java very much \'n\"; String s2 = \"Java is powerful, interesting and easy to learn \'n\"; String s3 = \" I made a commitment to myself that I shall master this technology to matter what, \'n\"; String s4 = \"I am inspired profoundly by my professor that with this technology in my mind it shall benefit all my life, \"n\"; Write one GUI O/P statement in one line without any literals to display the following sentences in 4 lines by using the variable definitions as these String s1 = \" I like Java very much, n\"; String s2 = \"Java is powerful, interesting and easy to learn \'n\"; String s3 = \" I made a commitment to myself that I shall master this technology to matter what, \'n\"; String s4 = \"I am inspired profoundly by my professor that with this technology in my mind it shall benefit all my life, \"n\"; Write one console O/P statement without any literals to display the following lines of words using the Strings variables defined below: List of String variables defined:
Solution
2. System.out.println(s1 + s2 + s3 + s4); will do the needful.
3. JOptionPane.showMessageDialog(null, s1+s2+s3+s4); will do the needful.
4. System.out.println(t1 + t2 + \"\\t\" + t3 + \"\\t\" + t4 + \"\\t\" + t5 + \"\\t\" + \"Final\ \" + t6); Note that we can\'t achieve this without using any literals.
