This commit is contained in:
2025-03-04 15:53:39 +03:00
parent d3ac74eb64
commit bbf73e06a4
8 changed files with 95 additions and 0 deletions

View File

@ -0,0 +1,11 @@
public class TupleDemo {
public static void main(String[] args) {
Tuple <String, Integer, String> personTuple = new Tuple("John Doe", 21, "CS student");
Tuple <String, Double, Boolean> itemTuple = new Tuple("Tablet", 13123, 1);
System.out.println(personTuple.getItem1() + personTuple.getItem2() + personTuple.getItem3());
}
}