Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search Coderanch
Advance search
Google search
Register / Login
BishalG Ghimire
Greenhorn
+ Follow
1
Posts
0
Threads
0
Cows
since Jan 25, 2014
Merit badge:
grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
Ranch Hand Scavenger Hunt
Number Posts (1/100)
Number Threads Started (0/100)
Number Cows Received (0/5)
Number Likes Received (0/10)
Number Likes Granted (0/20)
Set bumper stickers in profile (0/3)
Report a post to the moderators (0/1)
Edit a wiki page (0/1)
Create a post with an image (0/2)
Greenhorn Scavenger Hunt
First Post
Number Posts (1/10)
Number Threads Started (0/10)
Number Likes Received (0/3)
Number Likes Granted (0/3)
Set bumper stickers in profile (0/1)
Set signature in profile
Search for a post/thread (0/3)
Set a watch on a thread
Save thread as a bookmark
Create a post with an image (0/1)
Recent posts by BishalG Ghimire
Breaking an integer into individual digits.
import java.util.Scanner; /** * Write a description of class intSplit here. * * Write a program that reads in an integer and breaks it into a sequence of individual digits. For example the input 1234 is displayed as 4 3 2 1. * * @author Bishal Ghimire * @version 2014 - Jan - 26 */ public class intSplit { public static void main(String args[]) { System.out.println("Please enter integer number "); Scanner reader = new Scanner(System.in); int num = reader.nextInt(); while (num != 0) { int reminder = num % 10; System.out.println(" " + reminder); num = num / 10; } } }
show more
10 years ago
Beginning Java