displayLetter(String1.charAt(4)) actually does work!!
cheers
Type: Posts; User: av8
displayLetter(String1.charAt(4)) actually does work!!
cheers
String1.charAt(4) should work as is. Yes it does, it returns the letter l, but then how do i input this result into another method that only takes a char as an
argument.
...
I tried:
String1.charAt(4) = char aChar;
I get: Syntax error: column 21. Encountered: char
String String1 = new String();
String1 = "bubble";
String1.charAt(4);
I want to input the result of String1.charAt(4); which is the letter l into a method which only takes a char as an...