Results for “java function return string example python pdf file site:bugs.java.com”
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-4267294 InputStream must be created in getInputStream...
addAttachment(String contentType, InputStream in). Because I don't know what type of InputStream that can be passed in, I can't use any of the provided DataSource implementation classes (e.g. java.activation.FileDataSource).
bugs.java.com
Bug ID: JDK-8196004 JEP 326: Raw String Literals (Preview)
Python, Kotlin, Groovy and Swift have opted to use triple double quotes to indicate raw strings. This choice reflects the connection with existing string literals. Go and JavaScript use the backtick.