The java command takes the complete name of the class which includes the package name:
java com.DataFlair.StringInput.ScannerClassInput
The java command needs to be entered in the directory that...