Advertisement
sergAccount

Untitled

Jul 10th, 2021
908
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.76 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package com.mycompany.ex19;
  7.  
  8. /**
  9.  *
  10.  * @author student
  11.  */
  12. public class Main {
  13.    
  14.     public static void main(String[] args) {
  15.        
  16.         Student s1 = new Student("Petrov");
  17.         Student s2 = new Student("Vasechkin");
  18.        
  19.         s1.setS1("fsafafas");
  20.         //Student.setS1("fsafafas");
  21.         System.out.println("s2.getS1()=" + s2.getS1());
  22.        
  23.         System.out.println("Institute.INSTITUTE_MSU=" + Institute.INSTITUTE_MSU);
  24.         //Institute.INSTITUTE_MSU = 100;
  25.        
  26.         System.out.println("Math.PI=" + Math.PI);
  27.     }    
  28. }
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement