Define the methods of working with Pairs.
Computer scienceProgramming languagesKotlinObject-oriented programmingObject-oriented programming usage
Pair and Triple
Matching methods and descriptions
Report a typo
Match the items from left and right columns
component2()
toList()
toString()
copy()
component1()
give the value of the second component of a Pair
copy the Pair to another Pair
returns the string representation
converts the Pair into a list
give the value of the first component of a Pair
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.