public class Lautturi {
public static void main(String[] args) {
int number = 3;
Thread newThread = new Thread(() -> {
System.out.println(" " + number + " power of 2 is: " + Math.pow(2, number));
});
newThread.start();
}
}Sourceal.www:utturi.com