Java – How to remove first and last character from a String ?
In this article, we will learn how to remove 1st and last character from a String using String‘s methods and StringBuffer/StringBuilder method in different ways Read More
In this article, we will learn how to remove 1st and last character from a String using String‘s methods and StringBuffer/StringBuilder method in different ways Read More
In this article, we will learn how to find/get 1st and last character in a String using String‘s methods & StringBuffer/StringBuilder method in different ways Read More
In this article, we will learn how to iterate over char[] Arrays in different ways Iterate over char[] Arrays : Using Java 8 Stream.chars() method Read More
In this article, we will learn how to convert Celsius to Fahrenheit and vice-versa 1. Convert Celsius to Fahrenheit : Single conversion using straight calculation Read More
In this article, we will learn how to convert Roman letters (I, II, III, IV, V, VI, etc.,) into Integer (1, 2, 3, 4, 5, Read More
In this article, we will learn how to generate Fibonacci numbers using Stream and other loop structure Generate Fibonacci Series/Numbers : Using Java 8 Stream Read More
In this article, we will learn how to find and remove first & last digit of a number Find/remove first and last digit of a Read More
In this article, we will learn how to count length of last word in a String using String‘s length() method Count length of Last word Read More
In this article, we will learn how to remove last comma (,) from a String using String‘s substring() method and Java 8 Stream Remove last Read More
In this article, we will learn how to remove special characters from the given String Remove special characters from given String : Using Java 1.7 Read More
In this article, we will learn how to convert duplicate characters/occurrences to Uppercase letter in a String In one of the previous article, we already Read More
In this article, we will discuss how to convert first character of every word to uppercase using Java 1.8 version In one of the previous Read More
In this article, we will learn how to check whether a particular number exists in an Arrays or List or Stream using Java 8 Stream Read More
In this article, we will learn how to check whether a given Date is weekend or not ? Check given Date is weekend : Using Read More
In this article, we will learn how to get next and previous date for a given Date Get Next and Previous Date : Using LocalDate Read More
In this article, we will learn how to check whether a given Date or LocalDate or Year or Calendar or GregorianCalendar is leap year or Read More
In this article, we will learn how to get current Timestamp in different ways Get Current Timestamp : Using System.currentTimeMillis() method Using Date Object Using Read More
In this article, we will learn how to get current Date in different ways Get Current Date : Using Date object Using Calendar instance 1. Read More
In this article, we will learn how to get all Dates between start Date and end Date using Java 7, Java 8 and Java 9 Read More
In this article, we will discuss what are the different ways to calculate difference between 2 Date/time Ways to find difference between 2 Date/time : Read More