Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Cannot convert this pseudo code line to java??

  1. #1
    Junior Member
    Join Date
    May 2022
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Cannot convert this pseudo code line to java??

    FOR ii <- 0 TO (array.length–1 – pass)-1 DO

  2. #2
    Member
    Join Date
    Jun 2022
    Posts
    41
    Thanks
    1
    Thanked 3 Times in 2 Posts

    Default Re: Cannot convert this pseudo code line to java??

    import java.util.Arrays;
    import java.util.List;
    public class Main {
      public static void main(String[] args){
     
        // create an array of integers
        Integer[] intArray = {1,2,3,4,5,6,7,8,9,10};
     
        // update their values
        for(Integer index = 0; index < intArray.length; index++){
          intArray[index] += 10;
        }
     
        // display result
        List<Integer> intList = Arrays.asList(intArray);
        System.out.println(intList);
     
      } // main
    } // Main

    Quote Originally Posted by Output
    [11, 12, 13, 14, 15, 16, 17, 18, 19, 20]

Similar Threads

  1. Creating pseudo code
    By Rain_Maker in forum What's Wrong With My Code?
    Replies: 3
    Last Post: September 23rd, 2013, 07:08 PM
  2. [SOLVED] How to convert this pseudo code into JAVA
    By MUSKAAN DUTT in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 2nd, 2013, 09:36 AM
  3. pseudo code and algorithms
    By oonagh in forum What's Wrong With My Code?
    Replies: 6
    Last Post: December 3rd, 2012, 11:23 AM
  4. pseudo Code Help
    By shamil max in forum Java Theory & Questions
    Replies: 1
    Last Post: March 27th, 2012, 09:08 AM
  5. HELP WITH PSEUDO CODE
    By pronk123 in forum Member Introductions
    Replies: 0
    Last Post: December 14th, 2010, 09:30 AM

Tags for this Thread