Powered by Blogger.

strip only the numbers from any formatted string of phone number

>> Thursday, April 23, 2020

This is a method which returns a string contains numbers init.The phone numbers may contain in differnt formats Ex: (123) 456-7890
so we can read these type of characters and returns only the numbers using java method isDigit from Character class.

Read more..

Display first fetter of a word with Capital letter in a given Sentence or String

>> Friday, February 28, 2020

The below code will display every first letter of a word in the sentence will display as a capital letter or in Camel Case using java program.
CamelCase Words in the Sentence

Read more..

convert .pem file to .ppk using puttygen - AWS

>> Friday, January 3, 2020

PEM-Privacy Enhanced Mail is a Base64 encoded DER certificate file format.  PEM certificates are frequently used for web servers as they can easily be translated into readable data using a simple text editor.  Generally when a PEM encoded file is opened in a text editor, it contains very distinct headers and footers.

while creating an instance in Amazon EC2 you will be required to create Key Pairs and .pem file will be generated. I have shown in the below images how to convert .pem file to .ppk file format using puttygen in the below images.

Read more..

Java Program to Print Square Pattern with Stars

>> Wednesday, August 8, 2018

This is a very basic program for beginners who starts learning for loop. This is the best example to understand how the nested loops works. In our program we are going to print the below square star (* ) pattern as shown in the image.

Read more..

How to run two Tomcat Instances on same machine

>> Thursday, February 15, 2018

Sometimes you are forced to work multiple projects at a time, using two work-spaces using IDE's like MyEclipse or Eclipse or NetBeans. In this situation you should run both the tomcat servers to test your changes at a time from your local. If you run both Tomcat servers at a time from different workspaces you will get the error message as showing below:

"Port 8080 required by Tomcat v8.0 Server at localhost is already in Use."

Tomcat Multiple Instances Error Message_JavabynataraJ

Read more..

Java - Unable to Split a String on Caret (^) symbol as a delimiter

>> Saturday, July 29, 2017

In Java Regular Expressions , Caret ( ^ ) is a Special character. Here it means "it should match the beginning" of an input.
Split method using the Caret symbol on String

Read more..

Related Posts Plugin for WordPress, Blogger...
© javabynataraj.blogspot.com from 2009 - 2020. All rights reserved.