Link to home
Start Free TrialLog in
Avatar of ryanbecker24
ryanbecker24

asked on

Need help with this problem

public void print(String filename, boolean doubleSided)
    {
        System.out.println(filename);
        if(doubleSided = true){
            System.out.println(2);
        }
        else if(doubleSided = false)
        {
                System.out.println("Error. The paper must be double sided");
        }        
               
    }
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
:)