Java with input first letter number then output inclue number words : am jst starting on Java, need to have output where if input is put in using Scanner class. 

Have tried the following:

      } else if (first.charAt(0) == 1++) {
			    String str = "";
			    for (int i = 1++ ; i < first.length(i); i = i charAt(i)) {
			        str += first.charAt(i);
			    }
			    first = str;

An example, if user inputs "3stars", output would be "3st", or input "7appendices" output would be "7append". 

Any help would be great. 