Write the output of the following String and Math Methods in java. public class mathestr { public static void main(String[] args) { double num = 2.999; String msg="Welcome to UTASA"; int...


Write the output of the following String and Math Methods in java.<br>public class mathestr<br>{<br>public static void main(String[] args)<br>{<br>double num = 2.999;<br>String msg=

Extracted text: Write the output of the following String and Math Methods in java. public class mathestr { public static void main(String[] args) { double num = 2.999; String msg="Welcome to UTASA"; int num1=(int)Mathfloor(num): int num2=(int)Math.ceil(num); System.out.print(msg.substring(num1,13)); System.out.print(msg.charAt(num2)); } } } O a. elcome to UT O b. elcome to UTC O c. Icome to UTC O d. come to UTAC

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here