Anyone familiar with java?

Collapse

Recommended Videos

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Phobia
    Hall Of Fame
    • Jan 2008
    • 11623

    #16
    Re: Anyone familiar with java?

    Originally posted by elTodd
    You're trying to pass arguments into the function that are the wrong type. The function is looking for a double as the first argument, and an integer as the second. You're trying to pass an integer as the first, and a double as the second.
    Could you copy paste where the mistake is, because I've tried everything I can think of and can't get the error to disappear.

    is it when I'm setting the map and set? This is how I have it. I've tried flipping it to say Double, Integer and it doesn't change.
    Code:
    //Creation of Set and Map
            Set<:String:> propertySet = new TreeSet<>();
            TreeMap<:Integer, Double:> agentMap = new TreeMap<>();
    Last edited by Phobia; 09-09-2014, 05:31 PM.

    Comment

    • elTodd
      Little Big Puig
      • Feb 2004
      • 1333

      #17
      Re: Anyone familiar with java?

      Originally posted by Phobia
      Could you copy paste where the mistake is, because I've tried everything I can think of and can't get the error to disappear.

      is it when I'm setting the map and set? This is how I have it. I've tried flipping it to say Double, Integer and it doesn't change.
      Code:
      //Creation of Set and Map
              Set<:String:> propertySet = new TreeSet<>();
              TreeMap<:Integer, Double:> agentMap = new TreeMap<>();
      Trying flipping the arguments in the put statement. The types need to match up.

      Code:
      agentMap.put(propertyAgent, totalPropertyValue);

      Comment

      • Phobia
        Hall Of Fame
        • Jan 2008
        • 11623

        #18
        Re: Anyone familiar with java?

        Originally posted by elTodd
        Trying flipping the arguments in the put statement. The types need to match up.

        Code:
        agentMap.put(propertyAgent, totalPropertyValue);
        Tried that long before posting this lol. I'm baffled

        Comment

        • Phobia
          Hall Of Fame
          • Jan 2008
          • 11623

          #19
          Re: Anyone familiar with java?

          OH MY GOD!!!!!!!!!!!!!!!!!!!!!! I HATE NETBEANS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


          I just spent like 3 hours going round and round trying to get the error to quit being thrown. I exited out and just reloaded project and error is gone.

          Comment

          • superjames1992
            Hall Of Fame
            • Jun 2007
            • 31362

            #20
            Re: Anyone familiar with java?

            Just curious. Has anyone here used SAS? I'm getting that trial-by-fire right now, haha.
            Coaching Legacy of James Frizzell (CH 2K8)
            Yale Bulldogs (NCAA Football 07)
            Coaching Legacy of Lee Williamson (CH 2K8)

            Comment

            • Blzer
              Resident film pundit
              • Mar 2004
              • 42515

              #21
              Re: Anyone familiar with java?

              Originally posted by Phobia
              OH MY GOD!!!!!!!!!!!!!!!!!!!!!! I HATE NETBEANS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


              I just spent like 3 hours going round and round trying to get the error to quit being thrown. I exited out and just reloaded project and error is gone.
              Maybe you'd like Eclipse more? (though no JDK support)
              Samsung PN60F8500 PDP / Anthem MRX 720 / Klipsch RC-62 II / Klipsch RF-82 II (x2) / Insignia NS-B2111 (x2) / SVS PC13-Ultra / SVS SB-2000 / Sony MDR-7506 Professional / Audio-Technica ATH-R70x / Sony PS3 & PS4 / DirecTV HR44-500 / DarbeeVision DVP-5000 / Panamax M5400-PM / Elgato HD60

              Comment

              • Redacted01
                Hall Of Fame
                • Aug 2007
                • 10316

                #22
                Re: Anyone familiar with java?

                Originally posted by superjames1992
                Just curious. Has anyone here used SAS? I'm getting that trial-by-fire right now, haha.
                Yes... but I don't know if I can help Danica's lover. And it's possible I don't use it for the same reasons you do.

                Comment

                Working...