Fixed Array help!!!

i have a fixed array colection....how do i return the highest value in the array....but i need it to return its position in the array
i have the running loop working to return the highest value in my array but i need it to store the position it is in
double max = value[0];
        for(int i = 0; i < 12; i++)
            if(value[i] > max)
                max = value;
thnx alot for ur help!

So you're saying this does not work?
int indexOfMax = 0;
double max = value[0];
for(int i = 1; i < value.length; i++)
  if(value[i] > max)
    max = value;
indexOfMax = i;

Similar Messages

Maybe you are looking for

  • I reformat my ipod with MBP disc utility. Is my ipod DEAD?

    i have a 20Gb 3rd gen. ipod that i was using with my window pc (so it was formatted FAT). Now i have a macbookpro and the ipod wouldn't sync. neither restore to factory setting. So i try to reformat it (mac OS extended journaled) using macbookpro dis

  • Error during build application

    Software - Labview 7.1 PDA and Labview DSC 7.1 OS - WIndows XP. When I try to build application in Labview 7.1 I get following error "Error 7 occured at Build Application. vi >> Disk Cmp setting to disk hier.vi >> Dist report Read Link Error.vi." Can

  • Help on XI to BW and CRM integration

    Hi   How to to integration between SAP XI to BW,CRM integration ?   Is it same as ERP or Any differences ? Can any one provide me links on this ? regards Rakesh

  • Removing Members from Excel Add-in (or Smartview) Member Selection Options

    The users of my system have write access to some scenarios, read access to others, and no access to the rest. I would like the Scenarios for which the users have no access to not show up in the member selection options in Excel Add-in (similar to how

  • Call Crystal Report Atom

    Hi Expert, I developed a scenario for Call Crystal Report. But when I call the crystal report it's give me below error. "com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: InternalFormatterException---- Error code:-2147467259 Error code nam