A "for" expression that does not compile

This is a for loop from a snippet of code that does not compile in my J2SE 1.4.2 environment:
for (int i: Units.parseRange(range_, 1, pagecnt)) {
Can someone tell me what it means and what the 1.4.2 equivalent is?

Does this mean there is no way that I can compile it in 1.4.2?
I mean, is there an option that enables it?Yes and No... That is, yes using the 5.0 ( 1.5.0 ) beta 2, you can compile to 5.0 ( 1.5.0 ) to 1.4 using the -source and -target switches using 1.4 features only...
but if you use 5.0 ( 1.5.0 ) features, it will not compile to 1.4 , it will give you an error stating that the feature is not supported by 1.4...
So your code snippet would need to be re-written to 1.4 code to work with 1.4.x JVMs ...
Here is an example of the For-Each aka Enhanced For loop written in 5.0 ( 1.5.0 ) beta2 :
public class ForEachArray {
        public static void main ( String [] args ){
                    int[] ar = {1,2,3,4,5,6,7,8,9,0};
                    for (int i:ar){ // For-Each loop
                         System.out.println(i);
}Which the equivalent in 1.4 would be :
public class ForLoopArray {
        public static void main ( String [] args ){
                    int[] ar = {1,2,3,4,5,6,7,8,9,0};
                    for (int i = 0; i < ar.length; i++ ){ // for loop
                         System.out.println(ar);
Hope this answers some of your question, now if you want help with that code snippet, naturally I will need to see some more code related to the snippet so that I can assist you in re-writing it to 1.4 version...
- MaxxDmg...
- ' He who never sleeps... '

Similar Messages

  • HT2404 how do you get your money back for software that does not perform as advertised?

    how do you get your money back for software that does not perform as advertised?  I purchased the batch coverter to watch .swf video which it states it supports, but it will not open the files and I want my money back!!!!!

    tell Apple.  http://www.apple.com/feedback/
    iTunes Store Terms and Conditions specifically states: All sales and rentals of products are final.

  • HT3702 how do I cancel an application that I am being billed for monthly that does not work

    How do I cancel an application that I am being billed for monthly that does not work anymore?

    How to report an issue with Your iTunes Store purchase
    iTunes Store: Purchasing and managing auto-renewing subscriptions

  • Javascript to create bookmark for page that does not exist yet

    Hello all,
    Is there a way to write js for a bookmark that goes to a page that does not currently exist?
    For example, I have a 20 page pdf document.  We have FileMaker Pro that can 'append' to a PDF additional pages.  So when FileMaker pro appends two new pages (bringing us up to 22 pages), I'd like to have 2 'existing' bookmarks in the original 20 page pdf document that will, when clicked, go to page 21 and 22 respectfully.
    Is this possible and would anyone have the JS I would put into that bookmark?
    Thank you in advance!!

    Here's what I posted in the other forum you posted this to, in case it might help someone here:
    The JavaScript would be:
    // Go to page 21
    pageNum = 20;
    If there are fewer than 21 pages, it will go to the last page. If you want to avoid this, you could do something like:
    // Go to page 21 if there are at least 21 pages
    if (numPages > 20) pageNum = 20;

  • IMovie searching for files for project that does not exist...

    Whenever I fire up iMovie 09 on Lion, it spins, and then tells me it can't find a video file for a project that does not exist. That is, it says 'File xxx.mov from project 'Movie 1 cannot be found - without this file the movie cannot be played.' The project is one I deleted a long time ago, and does not appear in the project list. How can I force iMovie to forget about this?
    Thanks!
    PS the specific error is 'Searching for movie data in file "New Project 1 - Large.m4v". The only button is "Stop". so I press that, then a new dialogue box saying 'The movie file 'New Project Large.m4v" cannot be found. Without this file, the movie cannot play properly." It has cancel and search buttons. Obviously, searching doesn't help - it was deleted a long time ago. Cancelling makes it go away until iMovie is launched again.

    Whitecity,
    This is awesome.
    So moving forward from here, you can narrow down which event is causing the behavior but systematically trial and error. Once you determined the exact event folder, there are subfolders underneath:
    /iMovie Movie Cache/
    /iMovie Stabilization/
    /iMovie Thumbnails/
    Try removing these to see if iMovie rebuilds them.
    Calbe

  • TS1702 claim refund for app that does not work

    i have bought a app that is "HD" i also have the free version. the HD paid app is no different and does not load, infact the free version comes up (all stats and detaisl) when the paid version is opened, even after deleting the free version. i have re booted the i touch. how can i claim a refund. also i cannot contact the vendor as the page does not open, its unavailable.... can any one help?

    The last time I used the "report a problem" there was an option to describe the nature of the problem. But if you didn't get any comment option, go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue to the iTunes Store.
    Regards.

  • Imessage is active for contact that does not have it

    I am on iOS 5 and and my friend is not but for some reason when I text him it shows iMessage and not text but he can't receive it

    Does he have another device running iOS 5 like an iPad?

  • PLSQL - Creating a cursor for a table that does not exist

    I am writing my first PLSQL program, and I have run into a problem creating a cursor.
    I have a cursor that accesses a table on another database via a database link. The database link does not yet exist, so the first thing that my PLSQL does is create the database link. The problem is that I have to define my cursor before I have executed the code for the database link, and the compiler gives me an error for referring to a table that does not yet exist. How can I get around this?
    Here is the basic structure of my program
    DECLARE
    --cursor defined here
    BEGIN
    --code creates database link if it does not yet exist
    --code executes cursor
    END

    I'm still not sure I understand why the database link can't be created in advance... Once you run your code once, the database link is going to exist permanently. Why not just create it at compile time like every other object in your application?
    It's sort of like trying to create a table at runtime-- if you do that, you can't refer to that table in static SQL later on. You can do everything with dynamic SQL, but that's going to substantially increase the complexity of your code.
    Additionally, you have to have the CREATE DATABASE LINK privilege granted directly to the user running your code, not through a role, which seems like a huge security hole.
    Justin

  • How do I get a refund for an App that does not work correctly?

    How do I get a refund for a App (Express Newspapers)  that does not work correctly?

    How to report an issue with Your iTunes Store purchase

  • HT5621 My ipad recognizes and old email address for icloud.  When I go to change the address it sends me an email verification email that says click the link THAT DOES NOT EXIST IN THE EMAIL!!   How do I get this changed?

    I cannot get my icloud email address changed, but I no longer have that email address.  So it is sending an email to an address that no longer exists, yet I cannot get it to change to my current email address.  WHen I walk through the process, it sends me an "verificaiton email" that DOES NOT have the link in it to verify.  UGH

    Welcome to the Apple community TMOZINGO.
    If you are unable to remember your password, security questions, don’t have access to your rescue address or are unable to reset your password for whatever reason, your only option is to contact AppleCare(or Apple ID Support), upon speaking to an operator you should explain that your problem is related to your Apple ID, this way you will not be charged for assistance, even if you don’t have an AppleCare plan.
    The operator will take you through some steps you may have already tried, however they need to be sure they have exhausted all usual approaches before trying to reset your account, so you should try to be helpful and show patience with the procedure.
    The operator will need to verify they are speaking to the account holder and may ask you some questions that only the account holder could know, and you will need to answer them if the process is to proceed.
    Once the operator has verified your identity they will send a message through to your device which contains an alpha numeric code, which you will need to read back to them.
    Once this has been completed they will send an email to your iCloud email address after a period of 24 hours, so you should check that mail is enabled in your devices iCloud settings.
    Upon receipt of the email, use the reset link provided to reset your password, after which you should be able to make the adjustments to iCloud that you wish to do.

  • With previous editions of iTunes for Windows, I could play a CD at the same time as it was being imported. That does not work anymore. Why not, and is there a way to do both with the most current version?

    With previous editions of iTunes for Windows, I could play a CD at the same time as it was being imported. That does not seem to work anymore. Why not, and is there a way to do both with the most current version? I am running a Surface Pro 2 with Windows 8.1 and the most recent vesion of iTunes, which, in all other respects, works well. I just can't listen to an album for the 1/2 to 1 hour that it takes to import it into my library.

    Two JVM's ? I thought that J2EE worked within a single JVM and run everything in containers. Can you see the two processes?

  • Photos does not support external editing like iPhoto. Is there likely to be an upgrade to change this or will I abandon Photos for software that does support editing in Photoshop?

    Photos does not support external editing like iPhoto. Is there likely to be an upgrade to change this or will I abandon Photos for software that does support editing in Photoshop?

    iPhoto does work and there is an upgrade:
    Go to the App Store and check out the Purchases List. If iPhoto is there then it will be v9.6.1
    If it is there, then drag your existing iPhoto app (not the library, just the app) to the trash
    Install the App from the App Store.
    Sometimes iPhoto is not visible on the Purchases List. it may be hidden. See this article for details on how to unhide it.
    http://support.apple.com/kb/HT4928
    One question often asked: Will I lose my Photos if I reinstall?
    iPhoto the application and the iPhoto Library are two different parts of the iPhoto programme. So, reinstalling the app should not affect the Library. BUT you should always have a back up before doing this kind of work. Always.

  • Item category for free goods that does not require extra free goods

    Hi all,
    I have created 3 item categories (ZM1J, ZM0J and ZMFJ)
    ZM1J is standard item for sales
    ZM0J is free goods
    ZMFJ is also free goods
    I have setup VBN1 for free goods "buy 10 get 1 free" and my order is including these 3 item categories
    ZM1J 10 EA and ZM0J 1 EA. These 2 lines are correct as I need.
    Then I give other free goods which is ZMFJ 10 EA and system is asking me to give free goods 1 EA but I don't want to give free goods for ZMFJ. I will deliver only 21 EA (10 for sales and 11 for free)
    What config it should do for this case?
    Another question, ZM0J is selected by default. How to manually change it to ZMFJ in sales order?  This is because some case, I still need to use ZM0J.
    Please advise. Thank you very much.
    Best Regards,
    Darin

    Hi,
    Item category is determined by the four combination
    Sales order + item category group + usage + item category at higher level.
    Now you are using free goods determination procedure.
    So that does not depend upon item category determination.
    You have to define the item category determination so that proper delivery and proper pricing happens.
    Now if you are giving 10more free item for which you have maintain free goods determination master data.
    Then system will automatically give one more free goods for that material.
    but if you giving some other material as a free goods then please let me know.
    Give your requirement that in which way you want to process your ZMFJ then we can give you better suggestion.
    To define alternative item category go to
    IMG u2013 SD u2013 Sales u2013 Sales documents u2013 sales document item u2013 assign item category.
    Over here you can assign alternative item category for your combination.
    If you assign over here then you can change manually in the sales order.
    Regards
    Raj.

  • I was billed for a renewal with eHarmony that does not work. Eharmony said itunes claims the charge didnt go through but I have already been billed. How do I get my money back or get my subscription working??

    I was billed for a renewal with eHarmony via iTunes that does not work. Eharmony said itunes claims the charge didnt go through but I have already been billed it is on my bank statement. How do I get my money back or get my subscription working?? I have all transaction ID's and invoice numbers. Please help this has been very frustrating, thanks.

    Yes, I reported the problem using that exact sequence immediately after discovering the problem with the app.  When I submitted my complaint and request, Apple redirected me the website of the app manufacturer where I submitted the same complaint/request for refund.  I have not heard back from either, and was still charged, so I can only assume that is not the correct way to "Report a Problem" even though Apple would have you believe otherwise.

  • I purchased photoshop 9 previously and I now have a new laptop that does not have a 'disk' tray. Where do I download this from to put on my new laptop? I went to the download section and there is no download for English

    I purchased photoshop 9 previously and I now have a new laptop that does not have a 'disk' tray. Where do I download this from to put on my new laptop? I went to the download section and there is no download for English

    I assume you mean Photoshop Elements 9.
    Download from: Download Photoshop Elements products | 9, 8, 7

Maybe you are looking for

  • HTTP 403 when trying to access a protected resource

    I'm setting up a very simple enviornment to test the basic functionalities of Access Manager 7.1 but I keep on getting an "HTTP 403 forbidden" error when trying to access a protected resouce. I think I've set the required policies, rules, etc., but s

  • Finding imported photos in iphoto 2

    this past march, i created a new library on my external lacie for my photos in iphoto - to free up some space on my machine. since march there were many times when the lacie wasn't connected to the powerbook but i was still able to import my photos f

  • All old IDs lost, plus emails, all paid apps are lost - can I get them back?

    Three years ago I bought a generation 1 iPad. I've had to move several times since, as well as chanbe email addys and phone numbers. Most of my paperwork is gone, and I had to set up the iPad as a new machine to use it again. I had some very nice pai

  • QuickTime 7 in Safari

    For some reason QuickTime in Safari has stopped working. Until recently all was just fine but now just get a question mark within Safari when ever any QT page loads. Does anyone have any ideas? I have removed both QT and Safari pref files, repaired p

  • What's up with this new iMac

    Aloha all, I just purchased a new iMac with the following - 27" 3.1 GHz Intel Core i5,with 8 GB ram, running OS 10.6.7. After using an G5 PPC for 7 years, I thought it a good time to upgrade. My inquiry is page-ins, page-outs, & swap. I keep getting