you also defined name as an int at the beginning. It should be a String name, not int name.
Type: Posts; User: Hisma
you also defined name as an int at the beginning. It should be a String name, not int name.
The user is prompted to enter a name, but you're telling the scanner to expect an int.
Should be name = input.next() or input.nexLine()