Please help me. I have two packages named app and Util. Util is inside app. In Util i have the file BitUtils.java and in app i have CertkillerApp.java which is the driver file. I am getting error. Please help me.
BitUtils.java :
package Util;
public class BitUtils {
public static void process(new byte[]) {
System.out.println("Inside method byte");
}
}
CertkillerApp.java
package app;
public class CertkillerApp {
public static void main(String[] args) {
byte[] bytes = new byte[256];
Util.BitUtils.process(bytes);
}
}
Output :
D:\APP>javac CertkillerApp.java
.\Util\BitUtils.java:4: illegal start of type
public static void process(new byte[]) {
^
.\Util\BitUtils.java:8: expected
}
^
.\Util\BitUtils.java:4: missing method body, or declare abstract
public static void process(new byte[]) {
^
3 errors
Please help me. Don't take it as homework.
2006-08-16
17:07:13
·
4 answers
·
asked by
K Ban
2
in
Programming & Design