मराठी

Write down the syntax to perform the following task: To extract the last character of a word(wd) stored in the variable chr. - Computer Applications

Advertisements
Advertisements

प्रश्न

Write down the syntax to perform the following task:

To extract the last character of a word(wd) stored in the variable chr.

एका वाक्यात उत्तर

उत्तर

char chr = wd.charAt(wd.length() − 1);
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 4: String Handling - EXERCISES [पृष्ठ २८७]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 4 String Handling
EXERCISES | Q III. 3. | पृष्ठ २८७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×