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
-
When I open itunes to play content I've already purchased and while attempting to view trailers for movies in the itunes store, I receive a generic error message from windows, and I'm directed to reinstall the latest version of itunes. Not a fix. Help?
after perusing other subjects with playback issues:
this is the fix:
-Launch Control Panel - Double click Quicktime, If you do not see quicktime, look on the top left side of control panel and switch to classic view. This will then allow you to see Quicktime.
-Now click the advanced tab and click on Safe Mode GDI Only, Apply, then ok. -
I am trying to install iTunes 12.0 on my Windows 7 PC to sync my iPhone6. I am getting error message, "Item already exists" on installation of iTunes 12.0. Apple has no fix. Help???
Item or object?
For "Object already exists" or "Access denied" errors when installing try opening Control Panel > Programs and Features > View installed updates then checking for Security Update for Microsoft Windows (KB2918614). Uninstall if you have it, then reboot and try installing again.
For general advice see Troubleshooting issues with iTunes for Windows updates.
The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
tt2 -
I used utilities to source my 10.6 snow leopard install disc to my main hardrive, and now when I turn on my computer the apple with the spinning wheel stays on the screen and stuck like that. How do I fix it Help please. I already tried all the commands such as Command R, Holding down the Option key, C and holding down shift at the start up but nothing happens.
initialy All I was trying to do was downgrade 10.7 to 10.6 .You have to consider the possibility the hard drive may be dying. If your data isn't backed up, try one of the tools below:
https://discussions.apple.com/docs/DOC-1689
Once you are sure your data is backed up, we can examine other possibilities. In the meantime call AppleCare for your original installation DVDs. You may need them. -
My macbook will not download any apps from the app store. im running on mac os x 10.6.8. I don't know how to fix it, help?
Install the Mac OS X 10.6.8 Update Combo
That will re download and install the App Store for you which may help.
It's ok to install the combo even though you are already running v10.6.8
Restart your Mac after combo is installed, try downloading apps.
Note... if you have Little Snitch installed that will prevent downloads. If you have anti virus software installed, disable that and turn off the Firewall in System Prefereces > Security. -
I am new to Mac. I own an iphone and an ipad but have always used a PC for my business use. I bought a used Powerbook G4 and all is well EXCEPT I cannot get a program to download from a CD. I think it's an easy fix so HELP!
A few questions ....
What is the program you are trying to download? It is a mac version?
Is this a vendor's CD or a copy or ?
What error message or other indication do you get that says the download won't happen? -
Upgraded pc to ios 7 but when syncing to iphone 4 it crashed. Phone is now in recovery mode but it nearly finishes recovery then stops with error 3014. Phone rendered useless until this is fixed. Help pls? I have tried many of the suggestions for the error code given. Im getting frustrated. I'm not a techno so would appreciate simple terms or ways of explanation. Thx!!
I have the exact same issue right now!
-
My printers are not working after mavericks install.
The printer just PAUSE and can't be resumed.
What can I do to fix - PLEASE HELP!
It is my lifeline - we are a print shop!Go to the printer manufacture website and download the drivers for your printer model for OS X v10.9 Mavericks.
Then open System Preferences > Printers & Scanners > Print
Select your printer on the left then click - (minus)
Then click + (plus) to add the printer. -
My iphone's wifi greyd out how to fix it help me
my iphone's wifi greyd out how to fix it help me
Try this out see if it works.
1. turn Airplane mode ON
2. turn phone OFF, wait 10 minutes.
3. power up phone, turn airplane mode OFF -
My I phone 4 G home page i cons are twice the size as normal (mail, messages, ipod) etc.
Don't know how this happened and can't fix it help.Double tap with THREE fingers to turn zoom off. Then go into: Settings>General>Accessibility and turn it off for good.
-
i cant open iphoto here, open with a circle turning show loading,how to fix it. help!! i nit to reopen it and keep my precious photo
What version of iPhoto?
If it's 09 or later try
Option 1
Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
If that fails:
Option 2
Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
Regards
TD -
I've can't open any applications on my Mac ! I tried to delete some files from safari (history) and then none of the apps including iphoto, safari, mail, facetime. I don't know how to fix it, help ? any idea ?
Please read this whole message before doing anything.
This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, or by a peripheral device.
Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output andWi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test. -
Am suddenly getting error code 3250 when trying to download certain podcasts...not all, just some. How can I fix? Help.
I am getting the same error, and have been, since the last iTunes update. Driving me crazy, as some podcasts download without issue, others won't download at all, and get the 3250 error code.
-
My itunes radio rebuffers every 8 seconds - is there any fix or help for this problem. I am running the latest itunes on a new Mac with 4MB download speed.
You need to update your Mac OS to at least 10.5.8.
Itunes 10+ requires Mac OS 10.5.8+ -
Merge array help..
i made a simple program to merge arrays..it doesnt work for some reason..i post the code..can anyone help me fix it..thanks!
public class Merging {
public static void main (String [] args) {
int [] list = {2, 6, 8, 4, 5, 9, 7, 6, 3, 1, 0};
int [] list2 = {5, 6, 9, 8, 5, 1, 2, 3, 4, 9, 5, 6};
int [] list3 = new int[list.length + list2.length];
for (int i = 0; i < list3.length; i++) {
list3[i] = list[i] + list2;
System.out.print(list3[i]);
Message was edited by:
antonio_montanafor (int i = 0; i < list1.length; i++) {
list3[i] = list1;
for (int i = 0; i < list2.length; i++) {
list3[i + list1.length] = list2[i];
Definately not the cleanest way, but...
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
-
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