StaticMethod.java
/*
*静态方法访问实例字段及静态字段
*/
public class StaticMethod{
static int a=15;
static int b=2;
public static void main(String[] args){
System.out.println(a+"/"+b+"="+(a/b));
}}
*静态方法访问实例字段及静态字段
*/
public class StaticMethod{
static int a=15;
static int b=2;
public static void main(String[] args){
System.out.println(a+"/"+b+"="+(a/b));
}}