Home Discussion Discuss: do-while Loop in Java

  • confused?jacinth August 31, 2011 at 7:00 PM

    what if in condition on while im using string above what should be the format? like these package Passes; import java.util.Scanner; public class Sc { public static void main(String[]args){ Scanner jaz = new Scanner(System.in); do{ System.out.println("press c"); String c = jaz.next(); System.out.println("input age: "); int age = jaz.nextInt(); if(age < 60){ System.out.println("young!"); }else System.out.println("guwang!"); }while (String.e) }

  • javawinnie September 21, 2011 at 7:32 PM

    i need to get help about java programing

  • thrilledgcebile nhleko November 17, 2011 at 1:30 PM

    i like your examples.

  • java programmingmurugan January 25, 2012 at 2:24 PM

    simple program exercise very helpful java at j2ee kindly help me..

  • please help me , To unnderstantd this programshamim February 6, 2012 at 11:10 AM

    I can not understand this program public class DoWhile{ public static void main(String[] args){ int n = 12345; int t,r = 0; System.out.println("The original number : " + n); do{ t = n % 10; r = r * 10 + t; n = n / 10; }while (n > 0); System.out.println("The reverse number : " + r); }

  • loop with while_for_do whileNoor Suhadah February 7, 2012 at 6:24 PM

    1. for 2. while 3. do while display the following for loop 1 12 123 1234

  • srenrique demon April 23, 2012 at 7:14 AM

    its a nice program

  • doubtBalaji Sankar May 28, 2012 at 11:34 AM

    Please provide a step by step process of how the program s working

  • OOPrjhoi July 30, 2012 at 7:49 AM

    can you please add more examples?

  • java aslima asim ali September 13, 2012 at 2:05 PM

    actualy it is not a comment:i want to ask how to make a do while loop in java program?can you help me pls :)

  • core javaAbhishek gautam June 25, 2013 at 8:30 PM

    nested do while loop or do while A AB ABH ABHI ABHIS what is the source code

  • javaj.sumithvictor July 26, 2013 at 8:15 PM

    its very nice to student

  • JavaLewis October 4, 2013 at 12:48 AM

    Question print multiples of 37 below 100 using do while loop

Post your Comment



Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Related Articles
DMCA.com