Skip to main content

Command Palette

Search for a command to run...

Dollar to Naria Conversion using Java

Published
1 min readView as Markdown
C

Chino is an undergraduate at the University of Port Harcourt,studying Electronic and Computer Engineering.

She's a frontend developer, leveraging her html skills in power apps.

She writes about Microsoft Technologies and Everything Tech.

She is currently learning flutter to build cross platform apps.

Don't be shy and send her a dm😉

Performing a calculation such as a conversion with java,using the Scanner(system.in).

First you declare the Datatype making it #Final and assign a value to it, so as to avoid magic numbers. Then instantiate a class and assign a variable to it(Scanner is used to collect data from the console) and input few lines of code.

Below are the lines of code

image.png

The Result

Inputting different numbers to get its equivalent in Naria

image.png

image.png

Thank you

86 views