Question: Can someone help me fix my code? public class MovieSelectionType { public static void main(String args[]) { MovieService m = new MovieService(); class MovieService{ m.getDVD

Can someone help me fix my code?

public class MovieSelectionType {

public static void main(String args[]) {

MovieService m = new MovieService();

class MovieService{ m.getDVD ();

m.getStreaming(); m.netflix = false;

}

getStreaming ();

if (m.netflix == true); {

m.getStreaming(); }

void getStreaming(); { System.out.println("You have selected Streaming");

}

void getDVD(); { System.out.println ("You have selected DVD"); }

}

}

Expected output should be:

You have selected DVD

You have selected Streaming

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!