Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- char ch;
- String str="";
- Scanner sc= new Scanner(System.in);
- System.out.println("Enter A Line");
- String S=sc.nextLine();
- for(int i=0;i<S.length();i++){
- ch=S.charAt(i);
- while(ch!=' '){
- str=str+ch;
- }
- byte[] barr=str.getBytes();
- for(int z=0;z<barr.length;z++){
- System.out.println(barr[z]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement