Hi.
What is the error at line 42?
import java.io.*; import java.util.*; import com.sun.management.OperatingSystemMXBean; import java.lang.management.ManagementFactory; import java.lang.System; public class sysinfoHooshi{ public static void prt(String s){System.out.print(s);} public static void main(String args[]) throws Exception{ int k = 10;//k recent pieces of info will be maintained OperatingSystemMXBean osBean = (com.sun.management.OperatingSystemMXBean)ManagementFactory.getOperatingSystemMXBean(); class Info{ public String name; public String version; public String arch; long CPUSpeed; }; Info info = new Info(); Info[] queue = new Info[100]; int pos = 1; Date d = new Date(); long start = d.getTime(); while(true){ long time = d.getTime(); if( (start-time)%3 == 0 ) { queue[pos].name = System.getProperty("os.name"); System.out.println( queue[pos].name); queue[pos].version = System.getProperty("os.version"); queue[pos].arch = System.getProperty("os.arch"); pos++; } } info.CPUSpeed = OperatingSystemMXBean.getProcessCPUTime();//javac ERROR!! } // end main }// end class date