Results 1 to 2 of 2
Thread: What code is this?
- 01-23-2011, 01:41 PM #1
Member
- Join Date
- Jan 2011
- Posts
- 6
- Rep Power
- 0
What code is this?
Hello I had a problem about this program that my stupid Teacher give me. The statement says that it includes looping. The program output is this :
============
Enter a value: 2
Enter a value: 1
Enter a value: 0
The sum is 3
============
When the input is 0, it will add the non-zero digits, and if the value is not a zero digit, it will repeat the statement to input another value...This program includes LOOPING statement. like "Enter a value" will repeat if the input value is not a 0....I wish someone will post a code for this program.....BTW, the program class is not a BUFFEREDREADER or JOPTIONPANE. The program class is SCANNER....Pls. someone help me....this program is really important, otherwise Im going to fail my subject in JAVA programming.....:confused:
-
Duplicate of another thread and so this thread is closed.
Similar Threads
-
Code to check if a piece of code is legal.
By vahshir in forum New To JavaReplies: 3Last Post: 08-30-2010, 04:21 AM -
can any one pls send me a sample code for calling a jsp code in swings
By sniffer139 in forum AWT / SwingReplies: 1Last Post: 03-04-2010, 11:19 AM -
Convert java code to midlet code
By coldvoice05 in forum New To JavaReplies: 1Last Post: 08-12-2009, 11:14 AM -
Convert java code to midlet code
By coldvoice05 in forum Advanced JavaReplies: 1Last Post: 08-09-2009, 01:21 PM -
Generating Code Automatically Using Custom code Template In Eclipse
By JavaForums in forum EclipseReplies: 1Last Post: 04-26-2007, 03:52 PM


LinkBack URL
About LinkBacks

Bookmarks