Created
March 27, 2016 21:50
-
-
Save sunmeat/8ee72039a1fb5115a921 to your computer and use it in GitHub Desktop.
static field sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package pack; | |
class Student { | |
static String academy = "IT Step"; | |
int name; | |
double avgRating; | |
} | |
class AudiCar { | |
static String brand = "Audi"; | |
String vehicleIdentificationNumber; | |
String passport; | |
} | |
public class Program { | |
public static void main(String[] args) { | |
System.out.println(Student.academy); | |
System.out.println(AudiCar.brand); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment