Git Product home page Git Product logo

numbertostring-converter's Introduction

Number To String Converter

This is a project for converting numbers to constant/dynamic words and finding their repetition frequency without using the If-Else or Switch-Case statements, just using Java 8 features.

Demo

For example:
if inputted numbers i has specific conditions then convert that number to specific strings, for example: if i % 3 == 0 then replace that number with a specific string e.g."CMAS", or if i % 5 == 0 then replace that number with a specific string e.g."systems" and return the newly generated string with a count of each string repetition:

INPUT:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20    

OUTPUT:

1 2 good 4 systems CMAS 7 8 CMAS systems 11 CMAS good 14 CMASsystems 16 17 CMAS 19 systems.  
CMAS: 4    
systems: 3    
CMASsystems: 1    
good: 2     
integer: 10

Authors

numbertostring-converter's People

Contributors

miladmofidi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.