I'm making a class that lets the user input a string and it will output it to another program via keyPress methods. It works perfectly fine except when extra spaces are added to the output (eg My name outputs My name). If anyone has any suggestions they will be greatly appreciated .
-On another note does anyone know how to import custom classes? I would like to know so I don't have to move my class to any folder I decide to write a program. Also, I would like to avoid modifying the classpath because I would like this to work on multiple computers.
edit-Sorry about the thread title. I was orriginally writing about something else and forgot to change it.