Question: 1. Given string w1comic; string w2book; String w3heroes; a) What is the word content? string sl-wl.substring (2) ; b) What is the word content? String
1. Given string w1"comic"; string w2"book"; String w3"heroes"; a) What is the word content? string sl-wl.substring (2) ; b) What is the word content? String s2w2.substring (1, 3); c) What is the word content? string s3 w3 In or In not " w3 d) What is the value k? int k w3.length ) e) Write one statement to console output using the given three objects [Note: the quotation make is part of the text.] comic book "heroes 2. Write the java code to define a float value y that 3. What are the values of the following, assuming that n is 13 and m is 18. a) n/10 b) n/20 c) (n + m)/4 d) (n + m)/4.0 e) n%10 +m%10 f) (n+m)%10 g) (int) Math.round(m*0.7) h) (int) m*0.7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
