Java Char Array to Char charAt(char[] s, int pos)

Here you can find the source of charAt(char[] s, int pos)

Description

char At

License

Open Source License

Declaration

private static char charAt(char[] s, int pos) 

Method Source Code

//package com.java2s;

public class Main {
    private static char charAt(char[] s, int pos) {
        if (pos >= 0 && pos < s.length) {
            return s[pos];
        }//from w  w  w.ja  v a 2 s. c om
        return '\0';
    }
}

Related

  1. charArrayToLowerCase(char[] arr)
  2. charAt(CharSequence chars, int i)
  3. charAt(CharSequence chars, int index, boolean ignoreCase)
  4. hasCharAt(char toLookFor, int position, char[] toSearch)