outprint was not what I expected. * Name: Octavia L. Wynn * Date: 18 February 2019 *Purpose: The purpose of this program is to create a simple class…

outprint was not what I expected.  * Name: Octavia L. Wynn

 * Date: 18 February 2019

 *Purpose: The purpose of this program is to create a simple class to represent any household item 

*/

import java.util.Scanner;

public class Electronics {

 static Scanner sc= new Scanner (System.in);

 public Electronics(String string, boolean b) {

  // TODO Auto-generated constructor stub

 }

 public static void main(String[]args){

//create class Electronics with item name

//boolean to set the position of item

Electronics item1=new Electronics(“TV”,true);

System.out.println(item1.toString());

Electronics item2=new Electronics(“Surroundsoundspeakers”, true);

System.out.println(item2.toString());

Electronics item3=new Electronics(“Ipod”, false);

System.out.println(item3.toString());

 }

}

once you run it it comes out as

[email protected]

[email protected]

[email protected]