Results for “java function return array code file python command site:bugs.java.com update”
bugs.java.com
Bug ID: JDK-4034116 Functions that return multiple values
It would be nice if functions could return more than one object for example. public (int, File) getData(int p_stuff){ return m_anInt, m_aFile; } ... File f; int i; (i, f) = getData(2); This save having to make an object just to hold the data.
bugs.java.com
Bug ID: JDK-8202055 Add methods to Files for reading/writing a string...
Reading and writing a string from and to a file are common File operations. Currently, java.nio.file.Files already provides methods for the conversion between a byte array and file, as well as a list and file.