• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 1

Is it possible to return more than one value in java?

Java question

javacodingcorejava
17th Feb 2020, 2:11 PM
palak pandey
palak pandey - avatar
2 Answers
+ 3
No, you can only return once, but you can return an array, and then decompose it.
17th Feb 2020, 2:21 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 1
https://stackoverflow.com/questions/457629/how-to-return-multiple-objects-from-a-java-method https://stackoverflow.com/questions/15285270/is-it-possible-to-return-more-than-one-value-from-a-method-in-java
17th Feb 2020, 2:16 PM
Avinesh
Avinesh - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Python
2 Votes
Devolper
0 Votes
Python library
1 Votes
Help in web development
0 Votes
Python for hacking
0 Votes
I need help to learn coding
1 Votes
Why there are many programming language ??
2 Votes
Hey guys, any recommendations for courses?
0 Votes
I have been at it for hours and just got totally stuck on the chat bot v1.1 very first problem got me stuck.
0 Votes
Infinite Loop Trap on JavaScript
2 Votes