Reading lines from any Input Stream
import java.util.Scanner; //your code public String readFromStream(InputStream source){ Scanner in = new Scanner(source); return(in.nextLine()); }
12388 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
import java.util.Scanner; //your code public String readFromStream(InputStream source){ Scanner in = new Scanner(source); return(in.nextLine()); }