What do you want to save?
Add Code snippet
New code examples
-
Java 2022-03-04 21:10:14
how to read file from assets folder in android
BufferedReader reader = null; try { reader = new BufferedReader( new InputStreamReader(getAssets().open("filename.txt"), "UTF-8")); // do reading, usually loop until end of file reading String mLine; while ((... Add solution -
Java 2022-02-24 09:50:04
java comparing-two-csv-files-in-java
import java.io.*; import java.util.ArrayList; /* file1 - file2 = file3*/ public class CompareCSV { public static void main(String args[]) throws FileNotFoundException, IOException { String path="D:\\csv\\"; String file1="file1.csv&... Add solution -
Other 2022-02-22 16:20:42
Working with text - read text by lines from classpath
try (BufferedReader reader = new BufferedReader(new InputStreamReader(FileReader.class.getResourceAsStream("data.csv")))) { new FileReader().readLines(reader); } catch (IOException ioe) { throw new IllegalStateException("Can not rea... Add solution -
Java 2022-02-11 11:15:33
bufferedreader java
try { File file = new File("data.txt"); BufferedReader reader = new BufferedReader(new FileReader(file)); String line; while((line = reader.readLine()) != null) { System.out.println(line); } } catch(IOException e) { e.printStackTrac... Add solution -
Java 2022-01-31 01:31:41
otp verification in spring boot
//Your authentication key String authkey = "YourAuthKey"; //Mobile number to which OTP needs to be sent String mobiles = "+91XXXXXXXXXX"; //Your otp value to be sent. String otpValue = "12345"; URLConnection myURLCo... Add solution -
Java 2022-01-27 19:11:47
java fast input
// this program gives you fast input, especially for competitive programming import java.util.*; import java.io.*; public class PutYourClassNameHere { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static StringTokeniz... Add solution -
Java 2022-01-22 20:25:55
write a program to check whether the character is in lowercase or uppercase in java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Alphabet_Check { public static void main(String args[]) throws IOException{ char m; BufferedReader bf = new BufferedReader(new I... Add solution -
Java 2021-11-19 05:22:20
write file to internal storage android
public static boolean saveToInternalStorage(String data, String filename, Context context) throws IOException { FileOutputStream fos = context.openFileOutput(filename, Context.MODE_PRIVATE); //default mode is PRIVATE, can be APPEND etc. fos.write(da... Add solution