What’s wrong with this merge sort java code with user input?

The Errors you did in the code:

Finished in N/A
Line 87: error: ']' expected [in MSort.java]
        int a[l]=new int[n];
              ^
Line 87: error: ';' expected [in MSort.java]
        int a[l]=new int[n];
               ^
Line 87: error: not a statement [in MSort.java]
        int a[l]=new int[n];
                 ^
Line 95: error: illegal start of expression [in MSort.java]
         if (p=l)){ System.out.println("Sorta Right");
                 ^
Line 96: error: 'else' without 'if' [in MSort.java]
     } else{
       ^
5 errors

Those all are syntactical errors.

After that in merge function after the main for loop you write while loops in this way –

while(i <= m )    
                 b[c++] = a[i++];
 
               while(j<=h)   
                 b[c++] = a[j++];

here the problem is proper indention, If you cant use proper indention then make sure you use curly braces on your code.