Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do you check if two Strings are equal valued ?



How do you check if two Strings are equal valued ?..

Answer / Pradeep Sharma

In Kotlin, to check if two strings are equal, use the '==' operator or the '.equals()' method:nnval string1 = "Hello"nval string2 = "World"nnif (string1 == string2) {n println("The strings have the same value!")n}nelse {n println("The strings don't have the same value!")n}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Kotlin Interview Questions

Which companies use kotlin?

1 Answers  


List the Basic data types of Kotlin?

1 Answers  


Does Kotlin support both Explicit conversion and Implicit conversions?

1 Answers  


Is kotlin strongly typed?

1 Answers  


What are primitive data types in kotlin?

1 Answers  


How many ways to create array in kotlin?

1 Answers  


Does Kotlin programming allow macros?

1 Answers  


Give me name of the extension methods Kotlin provides to java.io.File

1 Answers  


State the advantages and disadvantages of kotlin?

1 Answers  


Differentiate between break and continue?

1 Answers  


How to declare a variable in kotlin?

1 Answers  


What is the use of abstraction in Kotlin?

1 Answers  


Categories