Several problems with that. "integer" and "string" are not data types from the standard library. What you mean are "int" and "String". Capitalization is important and makes a difference in java.
The next Problem is, that your class-name starts with a lowercase letter which, although not illegal, is discouraged and bad coding practice.
And then you try to use variables called "firstname" and "lastname" but these variables are never defined in your program. You should get a "cannot find symbol" error from your compiler.