Can't get the new for loop to work
public class newforloop
public static void main(String args[])
String[]Student={"backpack", "id", "pencil"};
String word="";
for(String i:Student)//I get an error here
if(i.equals("pencil"))
word=i;
System.out.println(word);
I tried doing this at school and it worked but when I go home to fiddle around with it I get an error. I asked my friend and he said to update JAVA so I asked him which one do I download and he wasn't sure because download like everything. So my question is, what do i download? I see a whole bunch of things but I'm not really sure, and I don't want to download each and everyone one of those.
Im using JCreator.
I believe the "For every" loop was implemented in Java 5.0 .. so you probably have Java 5 on the school computer, but not on your home computer. Just download the Java 5 JDK from the downloads section.
http://java.sun.com/javase/downloads/index_jdk5.jsp
Similar Messages
-
I can not get the download for indesign to work
I can not get the download for indesign to work.
Perhaps this Adobe Help document may help you:
http://helpx.adobe.com/creative-suite/kb/download-install-trials.html?t2 -
In the past 48 hrs, all of a sudden, the New Tab feature on my PC< using Firefox 3.56, simply stopped working. I did not change settings, or download a new version of Firefox. it just stopped working. There are other scenarios where it does still work (for example, if I want to open a link on a web page, I can right click and open the link in a new tab), but if I simply want to have multiple websites open at once on my PC, I am forced to have multiple versions of Firefox open, as my New Tab option seems to be disabled or something. Can you help?
Leliforever, cheek you list of installed add-ons, the Ask toolbar can be installed without the users knowledge.
For checking other extensions that may cause this, follow the procedure in this link - https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes -
I just bought the new late 2013 iMac. Can I get the new iWork for free?
I just bought a new late 2013 iMac. Can I get the new iWork for free? I updated it to Mavericks also. The Mac App store is showing $19.99 for each iWork component (Pages, Numbers, Keynote). I also bought the previous iWork version, if that matters. Free updates for iPhoto and iMovie seemed to show up with no problems. Maybe these are just glitches that will clear up in a couple of days?
Hi. If you want it to get updated, this should take care of it.
1. Uninstall iWork from your Mac.
2. Do a fresh install of iWork from DVD.
3. Install iWork update from Apple Downloads (direct link here: http://support.apple.com/kb/DL1563)
4. Sign into the Mac App Store, and check for updates. It should now show up as a free update. You may have to give it a few minutes (i.e. 10-15 minutes).
I've been a Windows user for years, so I know all of the tricks by now. I had hoped I would not need this knowledge for a Mac, but oh well...
Good luck. -
The on/off button on my 6th gen iPod nano recently got spoilt and I sent it back to the shop for a repair/exchange a week ago. Now I have just found out about the new 7th gen iPod nano and I am wondering, can I get the new one as a replacement?
No. You can turn your 6G Nano in to be recycled at your local Apple Store for a 10% discount towards the purchase of a new one. Otherwise, your only other option would be to sell the iPod on Craigslist or eBay and use the proceeds from the sale towards the purchase of the new 7G nano.
B-rock -
in the old version at the bottom of the sceen it displayed the total number of media and the size of the files. how can i get the new version to diplay this?
You're welcome. It was frustrating for me as well until I stumbled across "the fix"
-
How can i get the new update on my ipod touch gen 1
I have the oldest ipod touch how can i get the new soft ware in it
The 1G iPod can ony to to iOS 3.1.3 that you get here:
Purchasing iOS 3.1 Software Update for iPod touch (1st generation) -
i can´t get the sign for wi-fi, i already reset the ios,the wi-fi,clean all and reset, and nothing,someone know something?
You mean the inside of Settings > Wifi > you are unable to toggle it on?
Have you attempted to toggle airplane mode? Check for software update? Reset Network Settings? Restore as new in iTunes? -
I can not get the new updates because my start disc and hard drive are full, I need 1.98 GB.
Some folks recommend OmniDiskSweaper to allow you to review your stuff to find possible candidates to throw away.
Even if you throw away some stuff and your desired "1.98GB", then what? If that's the number you need for the update, you'll just use most or all of the reclaimed space with the update and you are right back to where you started.
You don't specify what kind of machine you got but presumably it's a mac pro since you posted in the Mac Pro community. In which case just get yourself another drive or two and move stuff around to free up your boot drive.
[Perhaps you should hurry too since I expect hdd prices might be going up due to possible impending hdd shortages.]
Finally, if some of those updates are major system updates you want extra drives for backups because I always recommend you never do major updates to your system without backups to that system. -
I just changed my email adress, so i changed my itunes store adress to. but how can i get the new store adress on my Iphone to buy apps anew ?
Go to Settings --> Store, click on your Apple ID and log out, then log in with your new details
-
Where can I get the driver for my HP DE8A4L external USB CD/DVD drive?
Where can I get the driver for my HP DE8A4L external USB CD/DVD drive?
On the label it says, Model HSTNN-PD06-91
and
HP PN: 518819-001 Rev.B
I've had my Mini 110-1000 running our music system for a couple of years, no complaints. When I wanted a CD/DVD drive, I purchased a DE8A4L external USB drive directly from HP. It didn't come with a driver disc. When I plug it in, the USB subsystem does not enable it. Device Manager shows a yellow exclamation point, saying, "Windows cannot load the device driver for this hardware..." It is running Windows XP Home Edition SP3.
What gives with this device?Following up on tactic 2) above, I upgraded the BIOS from version F07 to the latest version available on the HP download site, version F19. This went well, but unfortunately the system still does not recognize the device.
When I try to Device Manager, and select the DE8A4L DVD device, and try "search for a device driver", it says it cannot find a better match for the driver already installed.
This Mini 110-1000 only came with 1 Gb RAM, and Windows XP Home. Is one of these a critical limitation for running an external USB DVD drive? -
I just bought a Iphone 5 -- my Iphone 4 and my ipad used to automatically sinc calendars via the Icloud whenever I entered anything on either device -- I can not get the new phone to do this.I have check the settings on both devices and they seem to be t
There are only two things that you must do to connect a device to calendars:
1) In settings>icloud, you must log in, WITH THE CORRECT ID/PASSWORD, and
2) Turn on calendars on the same page.
You said that the iphone 4 and ipad **used** to automatically sync. Do they no long sync? -
I am using Windows 8.1. I have combined several pdf's, but I can't get the new file to save. Can someone help me?
In Adobe Acrobat use File > Save
-
Can I get the new iWork as a free upgrade if I have iWork '08?
Can I get the new iWork as a free upgrade if I have iWork '08?
If so, how?It is my understanding that the free upgrade is from iWork 09. The upgrade from iWork 08 to iWork 09 is always been a paid upgrade.
-
I can't get the new feature of firefox 13 of the new tab.
Find '''browser.newtab.url''' and double click on it (or right-click and select modify) and type your homepage you want, to open a new tab in your homepage.
thank you
Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.
Maybe you are looking for
-
Flash game problem: Game wont start until user clicks stage
Hi Everyone, I'm a student at Drexel University and I just completed a basic platformer for a actionscript class. My professor docked me some points for the game not working until the user actually clicks within the swf. I've heard that this problem
-
HT202157 i pluged in my apple tv but it flikering on my tv screen
i plugged in my apple tv but it flickering on my tv screen
-
Photos tweaked but what size do I save them?
I have been using PE7 for a few weeks now and am very pleased but realising that I can't keep on saving pictures at full size every time. So what should I do when re-sizing to keep at a sensible file size but retaining a lot of the goodness. Is is t
-
when i run after effects i keep getting this, the procedure entry point amtretrievelibrarypath could noy be located in the dynamic link library amtlib.dll. I've treid to getanother amtlib.dll from photoshop but it doesnt work any help?
-
"could not complete the requested operation" when i try to open the program
"could not complete the requested operation" when i try to open the program what can i do illustrator cc