IBM i Access Client Solutions

IBM i Access Client Solutions

Connect, learn, share, and engage with IBM Power.

 View Only

Read integers from a text file into an ArrayList and iterate through them using Java classes

  • 1.  Read integers from a text file into an ArrayList and iterate through them using Java classes

    Posted Wed July 03, 2024 02:03 PM
      |   view attached

    Hello,
    I am new to the group and to HAScript (complete beginner).
    I have attempted to write a HAScript macro that will read integers (account numbers) from a text file into an ArrayList using Java classes. Ultimately, I would like to then iterate through them and perform action on each account number. The code is incorrect, I do not know how to write the "while condition" correctly. Would someone please help me correct my code? Any help would be appreciated. Thanks!



    ------------------------------
    Cal Moffitt
    ------------------------------

    Attachment(s)

    txt
    post.txt   1 KB 1 version