Giter Site home page Giter Site logo

url-shortener's Introduction

url-shortener

This is a Java application created in Eclipse that takes a longer url and shortens it.

The user is asked to type the url they wish to have shortened.

The user is then asked to verify they typed the correct url before converting it into a shorter url.

The longer url is given a unique string ID which is then entered into a method in order to shorten it.

Then the String ID, the longer url, and the shortened url are all displayed for the user.

The application will no longer print the shortened url after 10 attempts.

Example:

Please enter the url you would like to have shortened:

User: https://github.com/kyleewebb7/url-shortener/edit/master/README.md

Please re-enter to verify correct url:

User: https://github.com/kyleewebb7/url-shortener/edit/master/README.md

The string id for https://github.com/kyleewebb7/url-shortener/edit/master/README.md is 125581370 Your original url was: https://github.com/kyleewebb7/url-shortener/edit/master/README.md The generated short url is iE5B8.io

Then the user is prompted with the ability to enter a new url. After 10 times however, the user is no longer able to enter a url and the application quits.

url-shortener's People

Contributors

kywebb 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.