Displaying some multiples
That looks quite good actually, minor stuff only.

for (int i = 1; i &lt;= 12; i++) {

I'm a persistent advocate for using &quot;real&quot; names for loop variables, like index or count or factor in this case.
        for (int factor = 1; factor &lt;= 12; factor++) {
            int result = number * factor;
            System.out.println(number + &quot; x &quot; + factor + &quot; = &quot; + result);
        }


        Scanner input = new Scanner(System.in);
        int number;

Do not declare all variables at the beginning of the method, declare them only when needed, that will limit the variable from creeping into scopes they don't belong in.

You could define the maximum factor as a constant.