Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Andro Max
Added: Nov 1, 2018 6:09 PM
Views: 13
Tags: no tags
  1. package AppMax;
  2. public class Main
  3. {
  4.     public static void main(String[] args)
  5.     {
  6.         Student S1=new Student();
  7.         Student S2=new Student();
  8.         S1.name="Alsadig";
  9.         S1.add="khartoum";
  10.         S1.age=23;
  11.         S1.level=1;
  12.         S1.phone_number=23314183;
  13.         S2.name="Alyagoud";
  14.         S2.add="Omdourman";
  15.         S2.age=23;
  16.         S2.level=2;
  17.         S2.phone_number=99444767;
  18.         S1.printStudentInfo();
  19.         S2.printStudentInfo();
  20.     }
  21. }
  22.