Well first, there is no nextString() method within the Scanner or String classes. So I would suggest:
String name;
DataInputStream in = new DataInputStream(System.in);
System.out.print("Enter your name :");
try {
name = in.readLine();
} catch (Exception e) {
e.printStackTrace();
}
And that should take care of reading your string inputs. As far as icNo, I'm unclear whether you wish to retrieve a string from the input, or whether icNo is really supposed to be declared as an int(which it's not). If you want it to return an int, declare as one instead of a string. If it's really supposed to be a string - follow the method above for now, but find a better way as readLine() is deprecated.
See how that works for you...