Computer Science, asked by Wallpaper, 4 months ago

Mansi was to create a program to compare two values which are not equal suggest to her operate the which display the non equality between to operate between two operands​

Answers

Answered by purplestar57
2

Answer:

Using java code

Explanation:

// comparing two strings

import java.io.*;

import java.lang.*;

import java.util.;

class Compare

{

//input

private String x,y;

private boolean f;

public void main(String args[])throws IOEXCEPTION

{

//comparing

f=x.equals(y);

if(r==true)

System.out.println(x"is equal to"y);

else

System.out.println(x"is not equal to"y);

}

}

Similar questions