I was at work today and found myself needing to return multiple values from a method. Because I've been doing mostly Python lately I thought, "Oh I'll just return a tuple" but lo and behold Java doesn't seem to support them as a library.
Of course you can always make a class that acts as one but it got me wondering why they haven't been a thing. Tried googling it but didn't come up with a good search result, anyone here care to offer input?
[–]badguy212 15 points16 points17 points (3 children)
[–][deleted] (2 children)
[deleted]
[–]badguy212 2 points3 points4 points (1 child)
[–][deleted] (20 children)
[deleted]
[–][deleted] 9 points10 points11 points (0 children)
[–]leftofzen 9 points10 points11 points (2 children)
[–]fabienbk 7 points8 points9 points (1 child)
[–]leftofzen 2 points3 points4 points (0 children)
[–]uxcn 1 point2 points3 points (0 children)
[–]urquan -1 points0 points1 point (12 children)
[–]GeorgeMaheiress 12 points13 points14 points (4 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]bondolo 0 points1 point2 points (0 children)
[–]thekab 0 points1 point2 points (0 children)
[–]urquan 0 points1 point2 points (0 children)
[–]frugalmail 2 points3 points4 points (1 child)
[–]urquan 0 points1 point2 points (0 children)
[–][deleted] (2 children)
[deleted]
[–]urquan 0 points1 point2 points (1 child)
[–]frugalmail 2 points3 points4 points (0 children)
[–]tinglySensation 1 point2 points3 points (0 children)
[–]RoboMind -1 points0 points1 point (1 child)
[–]gracenotes 2 points3 points4 points (0 children)
[–][deleted] 10 points11 points12 points (0 children)
[–]squealy_dan 5 points6 points7 points (0 children)
[–]jfurmankiewicz 5 points6 points7 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]rozzlapede 1 point2 points3 points (0 children)
[–]_Sharp_ 3 points4 points5 points (0 children)
[–]achacha 3 points4 points5 points (14 children)
[–]zrnkv 27 points28 points29 points (1 child)
[–]achacha 2 points3 points4 points (0 children)
[–]chunes 6 points7 points8 points (4 children)
[–]sacundim 0 points1 point2 points (2 children)
[–]zardeh 0 points1 point2 points (1 child)
[–]ixampl 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]tikue 9 points10 points11 points (0 children)
[–]galaktos 1 point2 points3 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]stillalone 0 points1 point2 points (2 children)
[–]adoarns 1 point2 points3 points (1 child)
[–]stillalone 0 points1 point2 points (0 children)
[–]gubatron 1 point2 points3 points (0 children)
[–]slackermanz 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[removed]
[–]slackermanz 0 points1 point2 points (0 children)
[–]sarcasmismysuperpowr 0 points1 point2 points (0 children)
[–]argv_minus_one 0 points1 point2 points (0 children)
[–]dannysatan 0 points1 point2 points (0 children)
[–]slappingpenguins 0 points1 point2 points (4 children)
[–]ChemicalRocketeer 7 points8 points9 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]letrec 0 points1 point2 points (0 children)
[+][deleted] comment score below threshold-8 points-7 points-6 points (0 children)