Results for “java function code example program pdf site:bugs.java.com file”
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-8192920 JEP 330: Launch Single-File Source-Code...
javac -d <memory> HelloWorld.java java -cp <memory> hello.World.For example, we could take the source code for a "Hello World" program, and put it in a file called `hello`, after an initial line of `#!/path/to/java --source 10`, and then mark the file as executable.