Home >>Java Programs >Java Program to separate the Individual Characters from a String
In this example, we will create a java program to separate each character from the string.
public class Main
{
public static void main(String[] args)
{
String string = "Abhimanyu ";
System.out.println("Individual characters from given string: ");
for(int i = 0; i < string.length(); i++)
{
System.out.print(string.charAt(i) + " ");
}
}
}