Question: Goal: Learn to access characters in a string. Assignment: In a system for cataloging digital books, each book has a unique identifier code. The last
Goal: Learn to access characters in a string.
Assignment: In a system for cataloging digital books, each book has a unique identifier code. The last digit of this code determines the genre of the book.
Given a String variable bookCode and a char variable lastChar, write some code that assigns to lastChar the last character of the bookCode. If the value of bookCode were XJE the expression's value would be E
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
