• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help me to write java function

 
Sudhir Pawar
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Help me to write java function which returns arrays of int float and String values.
And how can i store this returned values in another function??
please give me sample code here...
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Sudhir Pawar ,

Do you wish to have three separate functions for each return type ? . Or you want a single method to return all three arrays ?

For the first option, you can do something similar to this


However if you would like a single method to return all the three arrays then , in my opinion , you can declare a class with the three arrays and then initialize an object of this class, set the 3 arrays , and return this object
MyClass looks like this


Then you can call this method and return the object of this class

 
Sudhir Pawar
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic