---
title: "Discussion on \"Using a Pair/Tuple type in Java\" | Hashnode"
description: "Discussion on \"Using a Pair/Tuple type in Java\". At times I find myself wanting to use a type such as tuple in Python (or Scala) or the std::pair from C++ to represent a listing of homogenous or heterogenous values e.g. coordinates (x,y), a value along with its frequency ('b',2) or some other type ..."
url: "https://hashnode.com/posts/using-a-pairtuple-type-in-java/65d0156b9194c4b2633c4d41"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Using a Pair/Tuple type in Java](https://mondo.hashnode.dev/using-a-pairtuple-type-in-java?utm_source=hashnode&utm_medium=feed)

At times I find myself wanting to use a type such as tuple in Python (or Scala) or the std::pair from C++ to represent a listing of homogenous or heterogenous values e.g. coordinates (x,y), a value along with its frequency ('b',2) or some other type ...

Feb 17, 2024 · 4 min read · mondo.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#tuples](https://hashnode.com/tag/tuples)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#software-development](https://hashnode.com/tag/software-development)

## Written by

[Raymond Broome](https://hashnode.com/@rmond)

@rmond

  
[View profile](https://hashnode.com/@rmond)

Backend Software Engineer (with a dash of Front End for flavor)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
