N
niraliu
i am trying to implement interface, and static method cannot be called
in non static method. So my one class is public static void main and
other is non-static.
Test file -----------------
public class Test {
public static void main(String args[]) {
byte [] encoded =Round.doOneRound(data,key);
}
Round -----------
public interface Round {
public byte[/*8*/] doOneRound( byte[/*8*/] data, byte[/*6*/] key );
/*public byte[/*8*/] doOneRound( byte[/*8*/] data, byte[/*6*/] key )
So the error i m getting is non static method doOneRound cannot be
referrenced from a static cor
please help me debug..
in non static method. So my one class is public static void main and
other is non-static.
Test file -----------------
public class Test {
public static void main(String args[]) {
byte [] encoded =Round.doOneRound(data,key);
}
Round -----------
public interface Round {
public byte[/*8*/] doOneRound( byte[/*8*/] data, byte[/*6*/] key );
/*public byte[/*8*/] doOneRound( byte[/*8*/] data, byte[/*6*/] key )
So the error i m getting is non static method doOneRound cannot be
referrenced from a static cor
please help me debug..