public class PleaseFixUndo { public static void main(String[] args) { String myUndo = "Please Fix The Undo"; int pos = myUndo.indexOf("Fix"); int x = myndo; } }