for (int i = 0 i fruitsnames.length i++) explained code example Example: for (int i = 0; i < fruitsNames.length; i++) for (int i = 0; i < fruitsNames.length; i++)