Tuesday, 3 May 2022

Use of Match Functions in Java | Learning Selenium


public class math {

public static void main(String[] args) {
// TODO Auto-generated method stub
   
       double x = 24;    
       double y = 4;
         
       // return the maximum of two numbers  
       System.out.println("Maximum number of x and y is: " +Math.max(x, y));  
         
       // return the square root of y  
       System.out.println("Square root of y is: " + Math.sqrt(y));  
         
       //returns 28 power of 4 i.e. 28*28*28*28    
       System.out.println("Power of x and y is: " + Math.pow(x, y));      
     
}    

}

No comments:

Post a Comment

User Login, Logout on Edge, Chrome, Firefox using Java with Selenium | Learn Coding

import org.openqa.selenium.By ; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.sele...