saykotislam

201-15-13993_1(d)

Apr 8th, 2021
48
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package lab.pkg4;
  2. import java.util.Scanner;
  3.  
  4. class Movie{
  5.     String title="Casino Royale";
  6.     String studio="Eon Productions";
  7.     String rating="PG-13";
  8.     void dis(){
  9.      System.out.println(title);
  10.      System.out.println(studio);
  11.      System.out.println(rating);
  12.      }
  13.    
  14. }
  15.  
  16. public class Lab4{
  17.     public static void main(String[] args) {
  18.         Movie nm=new Movie();
  19.         nm.dis();
  20.     }
  21.    
  22. }
RAW Paste Data