The title says it all. I am super depressed about not understanding the most basic of Java. You think I am joking but I've spent upwards of 12 hours on basic questions. I need to complete an introduction course to continue with my degree. I am using JOptionPane to create basic input dialog boxes but can't grasp the concept of writing a code and it providing me visual information.
I can't even begin to explain what I know as it is negligent. Any programs, discords, anything at all where people are willing to help.
This is what I need to learn:
Adding the required import statements to the project
o import javax.swing.JOptionPane;
Adding the required comments at the top of the code
Declaring constants of different data types (int, double, boolean, String) and initializing them appropriately using the correct naming conventions discussed in class
Declaring variables of different data types (int, double, boolean, String) and initializing them appropriately using the correct naming conventions discussed in class
Getting user input using a JOptionPane.showInputDialog() function call
Converting user input from String to int using the Integer.parseInt() function
Converting user input from String to double using the Double.parseDouble() function
Converting user input from String to boolean using the Boolean.parseBoolean() function
Assigning values to variables using assignment statements
Doing basic calculations using assignment statements, arithmetic operators (+, –, *, /, %), constants, variables, etc.
Knowing how to check if a given number is perfectly divisible by another number using the appropriate arithmetic operator
Using an if-else()decision structure, relational operators (>, >=, <, <=, ==, !=), logical operators (&&, ||, and !) simple expressions, and compound boolean expressions to make decisions
Setting String literals (anything with double-quotes around it) to String variables using assignment statements
Concatenating strings to add String literals to values in variables and storing the result in String variables
Knowing how to use the String.format() function with the appropriate format specifier (“$%,.2f”, “%02d”, “%.2f”, “%.2f%%”etc.)
Displaying output back to user using a JOptionPane.showMessageDialog() method call
TLDR: Depressed an hopeless but don't want to throw in the towel just yet. I need any resources at all to help learn JOptionPane.