public class MyProgram { public void start() { int x = 0; String welcome = "Hello"; myMethod(x, welcome); System.out.println(x); } private void myMethod(int x, String s) { x = x + 1; System.out.println(s.charAt(x)); } }
x = x + 1;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)