Write a statement each to perform the following task on. strings: (i) Find and display the position of the last space in a string s. (ii) convert int data type into char data type
Answers
Answered by
48
1.
String str;
str.lastIndexOf (' ');
------------------×---------------
2.
int n;
char c= (char)n;
Answered by
13
above answer is correct
Similar questions