Skip to content

Task-8:

Saad Tariq requested to merge Task-8 into main

Write a java program to compare two Strings using the "compareTo()" method. Solution: I write a program having multiple Strings and when I use compareto function on these strings I found that is the compared object is big the answer will be negative if small answer will be a positive integer and if they are eequal it will be Zero.

Merge request reports