Computing divisibility and multiplication Please check my Java program to see if I use the global variables, nested loops and two functions with parameters correctly. I would also like any suggestions to improve my program.

import java.util.*;
public class javaProgram {

    public static int loopCount = 0;
    static Scanner scanner = new Scanner(System.in);

    public static void div(int n) {
        for (int i = 1; i &lt;= n; i++) {
                System.out.print("The number " + i + " is divisible by:");
                for (int j = 1; j &lt;= i; j++) {
                    if ((i % j) == 0)
                        System.out.print(" " + j);                
                    loopCount++;
                }
                System.out.println();
            }
       }

     private static void mul(int n) {   
                System.out.println();       
                System.out.println("Multiplication table for "+n);      
                System.out.println("---------------------------");  
                for(int i = 1; i&lt;=10;i++) {  
                    System.out.format("%2d x %d = %3d\n", i,n,i*n); 
                    loopCount++;
                }
     }

     public static void main(String[] args) {
            System.out.println("Let's compute for divisible and multiplication!");
            System.out.print("Enter number of integers: ");     
            int number = scanner.nextInt();  
            div(number);
            mul(number);
            System.out.println();
            System.out.println("Loop count " + loopCount);
        }

}
Review


  see if I use the global variables, nested loops and two functions with parameters correctly



loopCount is a magic variable, its meaning beats me. Is it some kind of debugging assistant?
The indentations seem random picks between 4 and 8 spaces. Stick to 4.
The div method is public, the mul private. Why introduce this inconsistency? 
Give full names to your methods for readabiliy divide, multiply.
The methods are void, printing the results to the console. This limits usability to zero. Separate interaction with the console from the method flow. Use return values to yield results. Let main log these results to the console.
As suggested in the comments, you can optimize division by probing the smallest prime divisor to minimize cycles in the loops.
Be a bit more consistent in aligning brackets with method declarations.
For readability and consistency, add a blank line after the imports and remove that blank line after the last method.