Okay so use nextLine instead of nextInt... What is try-catch?
--- Update ---
This is all messed up. I really cant figure out how to do this. Cant you show me a proper example? Doesnt have to be...
Type: Posts; User: brobertson300
Okay so use nextLine instead of nextInt... What is try-catch?
--- Update ---
This is all messed up. I really cant figure out how to do this. Cant you show me a proper example? Doesnt have to be...
Okay I am converting over to the Scanner class instead of using dialog boxes (JOptionPane) because thats what my teacher wants. I will post what I have in a few minutes.
--- Update ---
...
No No haha... I know how to write code. I am just unsure of how to get the program to read data from a .txt file. This is what I have so far and need guidance on the next steps. I used Scanner infile...
I couldnt figure out how to even write the code. I need a guideline of a basic example to get started. Sorry :/ for some reason this is really hard for me to figure out lol
Okay just logged in. I am going to try now!
--- Update ---
Alright. So i am having trouble becasue im not sure what the coding is supposed to look like. Can you Show me an example?
Okay so I create a file ____.txt and then a new file in java. Next steps?
There are no compiler errors and the program runs just fine. I was just curious if there are any shortcuts to make it well, shorter! haha... As far as input and output I know I can import the...
This is my output Dialog Box.
2753
Hey all I have a few lab assignments due this Friday and I am new to JAVA and programming in general. This specific assignment requires me to write a program that calculates the total sales after...