Program to declare, initialize and print an array of characters in Java

publicclass JAVA_039
{


publicstaticvoid main(String[] args)
{
char[] Vowels={'a','e','i','o','u'};

System.out.println(" The contents of the Character Array - 2Vowels are :");

for(int i=0;iout.println("\t\t\t\t\t Vowels[" + i + "] = " + Vowels[i]);
}
}

We Are Founder..