Posts by Sai Venkat Kodithyala

Author Biographical Info: Not available

Java.lang.Math.tan() Method

By Sai Venkat Kodithyala

In this tutorial, we will learn how to use a tan function in Java. A tangent is nothing but, it is a line that is touching the edge of a circle at one point. Using tan function in .... Read More

Round a double to 2 decimal places in java

By Sai Venkat Kodithyala

In this tutorial, we will learn how to round a double to 2 decimal places in Java. We can round a number by using the following methods: using String.format() using printf() By usi.... Read More

Printing the texts in table format in Java

By Sai Venkat Kodithyala

In this tutorial, we are learning how to print the texts in table format in the console in Java. By using the String.format function and printf we can print the content in a format.... Read More

EMI Calculator in Java

By Sai Venkat Kodithyala

In this tutorial, we will learn how to calculate the EMI in Java. EMI is nothing but, a payable amount that needs to be given to the bank every month until the full amount is paid..... Read More

How to create a Stopwatch in Java

By Sai Venkat Kodithyala

In this tutorial, we will be learning how to create a stopwatch in Java. I will be not importing any new packages. Using the basic Java packages we can create a stopwatch. What is .... Read More

How to remove a prefix from a string in Java

By Sai Venkat Kodithyala

In this tutorial, we are learning how to remove a prefix from a string in Java. We can remove a prefix from a string using the substring method. Also read: How to remove leading z.... Read More

How to print % in Java using String.format

By Sai Venkat Kodithyala

In this tutorial, we are learning how to print % in Java using String.format function. How to print % in String.format To print ‘%’ in String.format we need to use two .... Read More

Remove leading and trailing spaces from a string in Java

By Sai Venkat Kodithyala

In this tutorial, we are learning how to remove leading and trailing spaces from a string in Java. We can remove leading and trailing spaces from a string using these methods: trim.... Read More

Related Posts