I have a task to write an @Test annotated method which uses Integer toHexString and asserts that 11 becomes b
This is how I tried this getting illegal start of expression:
import org.junit.Test;
import org.junit.Assert;
public class HexTest {
@Test
public static void main (String[] args){
static Integer.toHexString(11){
Assert.assertEquals("int to Hex", 'b', 11);
}
}
}
I would be so grateful if someone could tell me what is wrong and how to fix it.