I have problem with this peace of code:
String name;
Scanner scan = new Scanner(System.in);
name = scan.next();
When i enter string with space in it( for example "Alfonso Alfonsov" ) this throws Missmatch exception. When i enter it without space ( "AlfonsoAlfonsov" ) everything is OK... Any idea what is wrong here ?