Git Product home page Git Product logo

string-manipulation's Introduction

basic-java-string-programs

Hello There👋:

This Repository contains a few string related java programs... If you have downloaded and liked the programs in this repository then please do ⭐ this repo...
Feel free to contact me on my g-mail

Key:

WHO IS THE INVENTOR OF JAVA
WordCount
capitalize
change_case
cocat_ThreeWords
count-letter-frequency
increment-vowels
longestWord
pigalitin
reverse

License and copyright:

This repository is Licensed under MIT License

Programs and their execution:

This is the explaination of every program:

WHO IS THE INVENTOR OF JAVA:

In this program the user is requested to enter the name of the inventor of java. <br/ >If the user enters James Gosling then the the program is terminated with a congrats message. else the user is given another chance to enter to name.
If the user is unable to answer after 3 attempts then the answer is displayed and the program is terminated.

WordCount:

The program accepts a string from the user and also a key from the user which is nothing but the word that the user wants to find in entered string.
Later the program counts the number of times key is occuring in the string and displays the frequency.

capitalize:

This program accepts a string from the user say:

mohandas karamchand gandhi

Later this program converts this string into the correct naming for:

Mohandas Karamchand Gandhi

change_case:

This program converts all lowercase characters into uppercase and vice versa.

// sample input:
String s = "Did yOu LiKe ThIS RePoSItoRy"

// output: 
dID yOu lIkE tHis rEpOsiTOry

concat_ThreeWords:

This program concats three words and displays the resultant string

// sample input
I
Love
Coding

// output
I Love Coding

count-letter-frequency:

This program counts the frequency of each and every character in the string

// sample input: 
Did you like this repository?

// output: 
. 	5
?	1
D	1
d	1
e	2
h	1
i	4
k	1
l	1
o	3
p	1
r	2
s	2
t	2
u	1
y	2
there are 16 different alphabets in : Did you like this repository? 

increment vowels:

This Program increments the ASCII value of each vovel in a string.

longest word:

This Program finds the longest word in a string. If there are 2 or more strigs with the same length then it displays the first word with that length

// sample input
How are you doing today

// output
The longest word is : doing and is : 5 characters long.

piglatin:

This program converts a word into piglatin form

reverse:

This program reserses a string

// sample input:
Hello there!!

// output: 
!!ereht olleH

string-manipulation's People

Contributors

voyager2005 avatar

Stargazers

 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.