Beginner Java programming

 

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

I  need help with my code. can someone please help me by telling me how to fix it and explain the logic behind my errors. I don’t know if my “if” statement is correct. my program doesn’t run and I really need to learn this.

/import statement

import java.util.Scanner;

import java.lang.*;

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

//class variables

public class JavaCoffee {

private boolean On = (true);

private boolean Off = (false);

public JavaCoffee(boolean on,boolean off,boolean On,boolean Off){

  this.On=On;

  this.Off=Off;

  this.On=on;

  this.Off=off;

}

public JavaCoffee (boolean On){

if (On) {

System.out.println(“Brewing” );

System.out.println(” (   (“);

System.out.println(” )   )”);

System.out.println(” ………..”);

System.out.println(” |     |]”);

System.out.println(” ‘.    /”);

System.out.println(”  `—–‘”);

}

 public JavaCoffee (boolean Off){

else (Off) {

System.out.println(“***Off***”);

System.exit(0);

}

}
}

———————————————-

import java.util.Scanner;

class TestJavaCoffee{

public static void main(String[] args) {

JavaCoffee coffee = new JavaCoffee(boolean On, boolean Off);

System.out.println(“Enter On to brew coffe, or Off to power off”);

Scanner scanner = new Scanner (System.in);

String On = scanner.nextLine();

}
}
NEED HELPcomputer science

Calculate your order
Pages (275 words)
Standard price: $0.00
Client Reviews
4.9
Sitejabber
4.6
Trustpilot
4.8
Our Guarantees
100% Confidentiality
Information about customers is confidential and never disclosed to third parties.
Original Writing
We complete all papers from scratch. You can get a plagiarism report.
Timely Delivery
No missed deadlines – 97% of assignments are completed in time.
Money Back
If you're confident that a writer didn't follow your order details, ask for a refund.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00
Power up Your Academic Success with the
Team of Professionals. We’ve Got Your Back.
Power up Your Study Success with Experts We’ve Got Your Back.

Order your essay today and save 30% with the discount code ESSAYHELP