मराठी

Write a statement to perform the following task on a string: Extract the second last character of a word stored in the variable wd. - Computer Applications

Advertisements
Advertisements

प्रश्न

Write a statement to perform the following task on a string:

Extract the second last character of a word stored in the variable wd.

कोड लेखन

उत्तर

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

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×