Search:

Type: Posts; User: av8

Search: Search took 0.29 seconds.

  1. Replies
    5
    Views
    1,052

    [SOLVED] Re: Strings and Characters

    displayLetter(String1.charAt(4)) actually does work!!

    cheers
  2. Replies
    5
    Views
    1,052

    [SOLVED] Re: Strings and Characters

    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.
    ...
  3. Replies
    5
    Views
    1,052

    [SOLVED] Re: Strings and Characters

    I tried:

    String1.charAt(4) = char aChar;

    I get: Syntax error: column 21. Encountered: char
  4. Replies
    5
    Views
    1,052

    [SOLVED] Strings and Characters

    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...
Results 1 to 4 of 4