import java.util.*;
class PropTest
{
public static void main(String[] args)
{
Properties pps=System.getproperties();
pps.list(System.out);
        }
}
提示错误如下:
PropTest.java:68: 需要 "class" 或 "interface"
8
^
1 错误

解决方案 »

  1.   

    你的Properties这个从哪里来的,代码没有写清楚.
      

  2.   

    单从以上代码来看是没有问题的啊
    你的class的68行是什么,贴出来看看
      

  3.   

    package com.guopeng;
    import java.util.*;public class PropTest {
    public static void main(String[] args) 

    Properties pps=System.getProperties(); 
    pps.list(System.out); 
        } 
    } 输出系统属性