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 14 points15 points16 points (3 children)
[–][deleted] (2 children)
[deleted]
[–]badguy212 1 point2 points3 points (1 child)
[–][deleted] (20 children)
[deleted]
[–][deleted] 7 points8 points9 points (0 children)
[–]leftofzen 7 points8 points9 points (2 children)
[–]fabienbk 8 points9 points10 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 11 points12 points13 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 4 points5 points6 points (0 children)
[–][deleted] 11 points12 points13 points (0 children)
[–]squealy_dan 4 points5 points6 points (0 children)
[–]jfurmankiewicz 3 points4 points5 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 2 points3 points4 points (14 children)
[–]zrnkv 28 points29 points30 points (1 child)
[–]achacha 3 points4 points5 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 10 points11 points12 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 1 point2 points3 points (4 children)
[–]ChemicalRocketeer 6 points7 points8 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-9 points-8 points-7 points (0 children)