
this is my program
import java.io.*;
public class separate
{
public static void main(String[] args)throws IOException
{
BufferedReader keyin=new BufferedReader(new InputStreamReader(System.in));
String x;
int ct=0;
String str;
System.out.println("Enter the string");
x=keyin.readLine();
int a=0;
int len=x.length();
int k;int j=0;
String l[]=new String[len];
for (k=0;k }
}
if i enter "my name" as the input the output is only "my" what is the error.my actual out put should be"my name".

Hi Friend,
Let me know the purpose of this program.
Thanks
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.