+ 2
What's java equivalence for Python tuples?
Tuples in java
6 Respostas
+ 6
I will say that over the years, Java, as a language, has been slow to evolve and adopt new improvements when compared to C#. Perhaps Java will eventually pick this up since tuples are now supported with C# 7.0.
https://docs.microsoft.com/en-us/dotnet/csharp/tuples
+ 5
While custom Java classes could be written to implement similar immutable qualities as Python tuples, I'm not aware of any native support for this in Java.
+ 4
Tuples? As in, in unmodifiable lists? Well why?
You could just use an Array right?
+ 2
Sure, array could work.
+ 1
Wow, I'll check that of c#, thanks man. This is so helpful.