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.


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

Results 1 to 2 of 2

Thread: Analyzing Numbers

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

    Post Analyzing Numbers

    I need to write a program that uses a while loop to print the numbers from 50 to 100, for the numbers which are multiples of both 2 and 3 I need to print "AP_VID" behind the number, for the multiples of 2 only I need to print "AP_H1" behind the number and for the multiples of 3 only I need to print "AP_H2" behind the number.
    I am really new learning Java and I don't know how to program this program, someone could help me ?

  2. #2
    Junior Member BosnianKingdom's Avatar
    Join Date
    Mar 2022
    Thanked 1 Time in 1 Post

    Default Re: Analyzing Numbers

    It would be helpful if you provided more details on what exactly you are stuck on and need help with. I'm not sure how useful it is if you write a problem like this and somebody gives you the code which you can copy paste.
    How would you approach this problem? You are a Java beginner so let's take Java out of the picture for a moment. You need to be able to come up with a plan in plain English and then convert your solution into Java code.
    If you have no idea how to start, write down the output for the first 20/25 values. Check if you can notice a pattern and go on from there.

Similar Threads

  1. API For Analyzing Javadoc
    By aussiemcgr in forum Java Theory & Questions
    Replies: 5
    Last Post: February 10th, 2014, 03:07 PM
  2. Analyzing Input Files, Code Runs Forever
    By jwr in forum What's Wrong With My Code?
    Replies: 6
    Last Post: November 23rd, 2013, 05:24 PM
  3. Replies: 4
    Last Post: February 10th, 2013, 11:58 PM
  4. Eclipse plugin - Analyzing a package
    By dunnkers in forum Java Theory & Questions
    Replies: 0
    Last Post: March 12th, 2011, 05:27 PM
  5. Need help in analyzing this word problem.
    By daveewhit in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 29th, 2010, 08:36 AM

Tags for this Thread