Ill try it when i come home, thanks for the advice
Type: Posts; User: Oldemor
Ill try it when i come home, thanks for the advice
Yeah, im sorry, im having a hard time saying what i really mean, when my native language isnt english :) I got a little guidance from my mentor, and i had just missunderstood the task i'd gotten....
2147483647! But ive fixed that, now i need to fix or remake the program so it do exactly the same without returning a 0 or a random value that should be shown with a println in the main
My code now looks like this:
import java.util.Scanner;
public class OppgaveC {
static double maksTemp = 0;
static double minTemp = 0;
It seems to be working like it should, without doing the modifications youre suggesting.. hmm.
--- Update ---
edit: reason i said it wasnt working in the start was because i had some random...
:eek: You're right, wanna help me on this one?
Wow, it worked by just changing their value to 0 instead of the integer.max_value and min_value.. Thank you (~~)(~~)
Hey, im trying to make a program where you can type in alot of values, and then it should return the sum of them, how many values ive typed in and the highest/lowest value. My code currently looks...