Problem on String – Set 2

What will be output of the following program? package com.masterjavatutorial; public class Test { public static void main(String[] args) { String str = “HelloWorld”; String str1 = str.toUpperCase().toLowerCase(); String str3… Read more »

Problems on String – Set 1

What will be the output of the below program? package com.masterjavatutorial; public class Test { public static void main(String[] args) { String str = “helloworld”; String str1 = str.toUpperCase().toLowerCase(); System.out.println(str… Read more »

Math abs() Method

Math abs() method returns the absolute value of the value passed as an argument. If the argument which is passed to method abs() is not negative, then the same argument… Read more »