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: Looper

  1. #1
    Junior Member
    Join Date
    Oct 2013
    Location
    San Diego Ca.
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Looper

    Hi,
    I'm a first year student in programming. I'm having technical difficulties with my Looper project: This is what I have so far.

    ex.:
    public class Looper
    {
         public static int i=0, j=0, k=0;
         public static void main(String[] args) throws InterruptedException
         {
              performLoop();
         }
         public static void performLoop() throws InterruptedException
         {
              for (i=0;i<3;i++)
              {
                   System.out.println(" I is: "+i);
                   for(j=0;j<5;j++)
                   {
                       if(j==4)
                         System.out.println(" J is: "+j);
                       else
                            System.out.print(" J is: "+j);
                       Thread.sleep(5000);
                       for(k=0;k<7;k++)
                       {
                            if(k==6)
                              System.out.println(" K is: "+k);
                            else
                              System.out.print(" K is: "+k);
     
     
                       }
                   }
              }
         }
    }

    This code is being done in notepad++ via DOS. It keeps saying,
    error: Class names, 'Looper' , are only accepted if annotation processing is explicitly
    requested 1 error. Would love some feedback.
    Thanks,
    Hunter1904


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,139
    Thanks
    48
    Thanked 2,156 Times in 2,129 Posts

    Default Re: Looper

    It keeps saying,
    What is the "It" that keeps saying...?

    If you are getting java compiler error messages, please copy the full text and paste it here.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Oct 2013
    Posts
    11
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: Looper

    No problem is here with the code. This code should be compiled and run perfactly...!!!!!!!

  4. #4
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    4,778
    My Mood
    Mellow
    Thanks
    175
    Thanked 625 Times in 612 Posts

    Default Re: Looper

    This page may be helpful. Remember, Google (or your favorite search engine) is your friend.