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
Get step-by-step solutions from verified subject matter experts
