Sitemap
Awesome||ME

Awesome||ME

First Java Programming Experience

1 min readJun 2, 2017

After so many years of wanting to run a life computer program of my own. I finally had a chance to do so through the help of core mentoring by the Sweskills team. My first program is a Java language program that has to do with reversion of input numbers.

I had initially wanted to create a class of my own but the Sweskills mentor team then re-explained to me. Another challenge faced was how the input numbers be reversed. The program is down below:

Get Awesome||ME’s stories in your inbox

Join Medium for free to get updates from this writer.

how it works: its a ConsoleProgram that rides on the “acm” superClass platform. A console applet is generated asking the user to insert some set of numbers. press enter and the program generates the “reversion” of the inputed numbers. Follow Sweskill on twitter and myself twitter

/****//*** @author RIDWANNA**/package myirstProject;import acm.program.*;public class DigitReverse extends ConsoleProgram {public void run() {//println ("This returns the reverse of digits in an integer.");int n = readInt("Enter a positive integer: ");int dReverse = 0;while (n > 0) {dReverse = dReverse * 10;dReverse = dReverse + n%10;n = n/10;}println("return dReverse:" + dReverse);}}

--

--