Filling Elements in an Array: char type
import java.util.Arrays; public class Main { public static void main(String[] argv) throws Exception { char[] charArr = new char[10]; char charFillValue = 'c'; Arrays.fill(charArr, charFillValue); } }