Java Program to insert space between every Characters

Get a String and Prints it characters with Space

Sample Input 1:


Sample Output 1:

H e l l o

Program or Solution

//Print The Character Of String With Space...

import java.util.*;

class Program
 public static void main(String args[])
     String word;
     Scanner sc=new Scanner(;

     System.out.println("Enter The Word:");  

     int len1=word.length();
     int i;

     System.out.println("The Output Is:");
            System.out.println(" "+word.charAt(i));
            System.out.println(" ");


Program Explanation

Searching for this logic for long while. save my life... huh!!!!!!!!!