Computer Science, asked by vijayant9673, 1 year ago

How to compare string with double quotes in java?

Answers

Answered by mukul82
0
chug chug chug chug chug chug chug chug chug chug chug chug chug chug chug chug chug chug chug chug chug chug chug chug chug chug
Answered by SohamKundu012
0

Answer:

int a=s.compareTo(Str);

s is a string .

Str is a string .

Explanation:

String is a datatype .

Datatypes are used to determine the nature of the variable .

When we specify that a variable has a certain datatype we say what values the expression may have .

The datatypes are :

  • Byte .
  • Short .
  • Char .
  • Int .
  • Float .
  • Long .
  • Double .
  • Boolean .
  • String .
Similar questions