errors in my java program y=mx+b with method : this is the program:
i tried to make a program that get from the user the m and the b from a user (y =mx+b) and prints is to a from of function "y=mx+b" with a method " liner".
   

     import java.io.*;
    public class line
    {
        double m, b;
        
       public void liner(double m,double b);
    {
        System.out.print("y = " + m + "x + " + b);
    }
        
    public static void main(String args[])
    {
        
    Scanner reader = new Scanner(System.in); 
       System.out.print("What is the Slope");
        m = reader.nextInt();
        reader.close();
         System.out.print("What is the Y Intercept");
        b = reader.nextInt();
    reader.close(); 
    liner (m , b);
    
    
        }
    }

this is the errors

    /line.java:6: error: missing method body, or declare abstract
       public void liner(double m,double b);
                   ^
    /line.java:14: error: cannot find symbol
    Scanner reader = new Scanner(System.in); 
    ^
      symbol:   class Scanner
      location: class line
    /line.java:14: error: cannot find symbol
    Scanner reader = new Scanner(System.in); 
                         ^
      symbol:   class Scanner
      location: class line
    3 errors

