If I know what you mean go line.

yourclass uc= new yourclass();
Initialise scanner
string name=keyboard.next();
uc.urmethodtoinsert(name);