Ok i need the string "H" to change to "KeyEvent.VK_+ (the string H thats entered)" And for some reason I can not get the variable to change from H to the new string in the main class. It does change in the other class though. Any help would be great.
Main Class
Convert ConvertObject = new Convert();
String word = "H"
ConvertObject.Convert(word);
System.out.println(word); // this keeps printing out H but it needs to print out
"KeyEvent.VK_H"
Convert Class
public static String Convert(String x) {
x = "KeyEvent.VK_" + x;
System.out.println(x);
return x;