VOOZH about

URL: https://www.geeksforgeeks.org/java/java-tuples-getlabel-method/

⇱ JavaTuples getLabel() method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

JavaTuples getLabel() method

Last Updated : 11 Jul, 2025
The getLabel() method in org.javatuples is used to fetch the label from the TupleClassObject from the LabelValue Class. This method can be used with only LabelValue class object of javatuples library. It returns a Label which is the element present at the index 0 of the LabelValueClassObject. The returned Label is ensures the type-safety. Method Declaration:
public A getLabel()
Syntax:
LabelValue