I have a doubt which follows.
public static void main(String[] args) throws IOException{ int number=1; System.out.println(\"M\"+number+1); }
A cleaner way to separate data from invariants:
int number=1; System.out.printf("M%d%n",number+1);