Write a program in Java to accept a sentence from the user convert it to Lowercase and replace the word black with the word red and the word white with the word blue and display the new sentence after the replacement is done .
( Please please answer the question correctly and I will mark you as a brainliest )
Share
//author :@Dark_Panther(Yash Raj)
import java.util.*;
public class Calculator
{
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
double a,b,c,d,e,f;
System.out.print("Enter two integers : ");
a=sc.nextDouble();
b=sc.nextDouble();
c=a+b;
d=a-b;
e=a*b;
f=a/b;
System.out.println("Sum="+c);
System.out.println("Difference="+d);
System.out.println("Product="+e);
System.out.println("Quotient="+f);
}
}