Hello!
I have made a small code using tutorials and have compiled it to .jar, but once I launch it, nothing displays, but in console it does. I created a loop which just generates numbers (10000) to test again, still it didn't display, but I saw that it's generating by watching my mouse's cursor.
Here's my code.
import java.util.Scanner; public class kalku { public static void main(String args[]) { Scanner kalkulators = new Scanner(System.in); double fnum, snum, answer; System.out.println("Insert first number: "); fnum = kalkulators.nextDouble(); System.out.println("Insert second number: "); snum = kalkulators.nextDouble(); answer = fnum + snum; System.out.println(answer); } }
Oh! I managed to launch it trough Command Prompt using "java -jar filename.jar"! Seems case is closed, now I need to figure out how to create some GUI or something like that.