Search:

Type: Posts; User: Oldemor

Search: Search took 0.53 seconds.

  1. Replies
    13
    Views
    1,675

    Re: min and max value of int

    Ill try it when i come home, thanks for the advice
  2. Replies
    13
    Views
    1,675

    Re: min and max value of int

    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....
  3. Replies
    13
    Views
    1,675

    Re: min and max value of int

    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
  4. Replies
    13
    Views
    1,675

    Re: min and max value of int

    My code now looks like this:


    import java.util.Scanner;


    public class OppgaveC {

    static double maksTemp = 0;
    static double minTemp = 0;
  5. Replies
    13
    Views
    1,675

    Re: min and max value of int

    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...
  6. Replies
    13
    Views
    1,675

    Re: min and max value of int

    :eek: You're right, wanna help me on this one?
  7. Replies
    13
    Views
    1,675

    Re: min and max value of int

    Wow, it worked by just changing their value to 0 instead of the integer.max_value and min_value.. Thank you (~~)(~~)
  8. Replies
    13
    Views
    1,675

    min and max value of int

    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...
Results 1 to 8 of 8