Initialize 2D array February 11, 2023 by Tarik Shorter way is do it as follows: private char[][] table = {{'1', '2', '3'}, {'4', '5', '6'}, {'7', '8', '9'}};