I really didn't think to much about using the loop method and i don't think it made it more complicated. Here's my code:
package com.crash.java;
import java.util.Scanner;
public class Main{...
Type: Posts; User: Crash
I really didn't think to much about using the loop method and i don't think it made it more complicated. Here's my code:
package com.crash.java;
import java.util.Scanner;
public class Main{...
Always here to help and i'm also quite new, about 2 weeks. Also good luck with your study :)
I wouldn't go with a loop but again with a if statement and a method for reseting. Here is what you should do for checking whether to terminate or reset:
//Ask if you want to terminate or...
If i'm not mistaken it's using TCP since its using Socket and not DatagramSocket but i'm not sure.
Ok what you need is to test what type of operator it's inputed and then give it some instructions, so you should go with if statements like this:
if(operation.equals("+")) {
//type in what you...
Got it now. I'm using integer math.
What i did was creating a variable to hold the inputed numbers and then one to hold the total. Then this two are asigned with the while loop in the 2nd Class being num the inputed value and total the...
This is a simple project that i was using to test my current java knowledge (kinda like revision) and for that i used two classes to make a simple averaging program. i know i0m making it more...
Thanks a lot. Worked out and now it can run operations :o
Sorry about that it's updated with the question now.
I'm new to java programming (about 1 week) and i've made up this simple program. The objective of the program is to make simple calculations but the problem is trying to input the operator. Here is...