compressing and decompressing text which resluts numeric value after compression in java. Can anyone help me :     import java.util.Scanner;
    import java.io.HashMap;
    import java.io.Set;
    class Hema
    {
    public static void main(String args[])
      {
    
           
    
            HashMap<String, Integer> map = new HashMap<>();
    
    	int c=0;
    	Scanner scanner = new Scanner(System.in);
    //it is for entering the string
    	System.out.println("Enter the sentence");
    
    	String sentence = scanner.nextLine();
    	String[] words = sentence.split(" ");
    //After entering the string we have to split the sentences into words
    	System.out.println("Words in the given sentence are :");
    //After splitting we have to display the value,keys pairs
    	for(String word:words)
            {
    	        map.put(words,c++);
    
    	}
    	print(map);
    //by using this maps we have to display the keys as a compressed one
    	for(int key: keys)
    	{
                System.out.println(key);
            }
    //after compression by using the keys we have to display the values of the keys as the entered text
            Set<String> keys = map.keySet();
            for(String key: keys){
                System.out.println("Value of "+key+" is: "+map.get(key));
            }
      }
    }




//I am getting this error when i am trying to compile mycode

// illegal character: '\u00a0'
        //for (String word : words) 
       ^

//Can anyone help me regarding this problem


