Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package lab.pkg4;
- import java.util.Scanner;
- class Movie{
- String title="Casino Royale";
- String studio="Eon Productions";
- String rating="PG-13";
- void dis(){
- System.out.println(title);
- System.out.println(studio);
- System.out.println(rating);
- }
- }
- public class Lab4{
- public static void main(String[] args) {
- Movie nm=new Movie();
- nm.dis();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement