First of all, I only coded "Hello world" and "3+4=7" applications in Java.
Here is the question:
I am trying to build a program which shows the data types' max and min values for referance. Actually I built it, but without any GUI. Everytime I need to look up to the values, I have to type;
java -jar "C:\Users\Mesut\Documents\NetBeansProjects\Deneme\ dist\Deneme.jar
to reach the values. And I am already bored
Although I don't know anything about GUI programming with Java, I tried to put the codes below into a GUI, but of course, I could not. This is discouraging me from Java, and I have to do something for that.
So my problem is, how to implement these codes into the GUI so that the program only shows the results of the codes and an Exit button or menu
public class Prg { public static void main(String[] args) { System.out.println("Integer veri tipi"); System.out.println("Max :"+Integer.MAX_VALUE); System.out.println("Min "+Integer.MIN_VALUE); System.out.println("---"); System.out.println("Double veri tipi"); System.out.println("Max :"+Double.MAX_VALUE); System.out.println("Min "+Double.MIN_VALUE); System.out.println("---"); System.out.println("Float veri tipi"); System.out.println("Max :"+Float.MAX_VALUE); System.out.println("Min "+Float.MIN_VALUE); System.out.println("---"); System.out.println("Long veri tipi"); System.out.println("Max :"+Long.MAX_VALUE); System.out.println("Min "+Long.MIN_VALUE); System.out.println("---"); System.out.println("Short veri tipi"); System.out.println("Max :"+Short.MAX_VALUE); System.out.println("Min "+Short.MIN_VALUE); System.out.println("---"); System.out.println("Byte veri tipi"); System.out.println("Max :"+Byte.MAX_VALUE); System.out.println("Min "+Byte.MIN_VALUE); System.out.println("---"); } }
I know it is so noob that you won't feel like helping, but maybe a little guidance?
Thanks.