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 4 of 4

Thread: What does this java code do?

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

    Default What does this java code do?

    i.postimg.cc/WbpVwWNj/javapuzzle.jpg

  2. The Following User Says Thank You to GyurbacsonyGregtor For This Useful Post:

    zemiak (May 28th, 2022)

  3. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: What does this java code do?

    If you have source code for your question, please copy it and paste it here.
    No images or links.
    If you don't understand my answer, don't ignore it, ask a question.

  4. #3
    Member
    Join Date
    Jul 2019
    Posts
    36
    Thanks
    2
    Thanked 4 Times in 4 Posts

    Default Re: What does this java code do?

    public class A { 
      static int  a =   0;
      static long b = 100;
     
      public static void main(String[] args) {
        for (;;) {
          System.err.println( a++);
          if (a > b)
            break;
        }
      }
    }

  5. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: What does this java code do?

    @zemiak
    How does that code relate to the question that the OP asked?
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Java code to execute the java code on schedule basis
    By reddysanam in forum What's Wrong With My Code?
    Replies: 0
    Last Post: November 16th, 2017, 04:06 AM
  2. Replies: 0
    Last Post: May 23rd, 2013, 04:35 PM
  3. Trouble Porting my Java File Reading Code to Android Code
    By Gravity Games in forum Android Development
    Replies: 0
    Last Post: December 6th, 2012, 04:38 PM
  4. Replies: 5
    Last Post: November 14th, 2012, 10:47 AM
  5. Replies: 3
    Last Post: September 3rd, 2012, 11:36 AM

Tags for this Thread