Question: question 7 and 8 How would you assign the 5th character from the left of String s to a character variable ch? char ch= s.charAt(4);
question 7 and 8
How would you assign the 5th character from the left of String s to a character variable ch? char ch= s.charAt(4); char ch = s.charAt (5); char ch=s. substring (4,5); None of above Question 8 1 pts Suppose r is a double variable with value 8.0 and p is a double variable with value =1.0/3.0. What is the result of Math.pow (r,p) ? 2 1 0 None of above
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
