Java Program to Print First and Last Character in a String

Java Program to Print First and Last Character in a String 1

Write a Java Program to print or display First and Last Character in a String with an example. In this java example, we used the String charAt function and the index position of first and last character to return the characters. To get the last character index position, we used the string length function. import … Read more