Object newValue = s.equals("Hello World") ? a : b;