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...
Ah :) Thank you for your expertise. I moved the test, and it worked like i was hoping it to do. Its okay that it doesn't print the whole line, as of now! Have a great day.
My current issues:
If i put the parameter to 56, it prints out numbers up to 55. But if i put the parameter to 57, it prints out numbers up to 66??
Heres the current code:
private static void...
Got some problems now, if i put 45 as a parameter, it prints out correctly like this: 2398, but if i put it to for example 95, it turns out like this: 2399 Somehow it doesnt stop on 95 if i put the...
Ive come up with something, its almost done:
private static void printNumbersB(int n) {
int teller = 1;
for (int lineNumber = 1; lineNumber <= n; lineNumber++) {
for...
Hey! Im going to make a program that prints out this to the console: 2395
Anyone got any thoughts on how to do it? I think it has something to do with a for loop and some formatting of the...
Hey im new to java and im trying to learn as much as i can :)