You have to write String…
you can try.
wr.write("123");
OR
wr.write(new Integer(123).toString());
OR
wr.write( String.valueOf(123) );
More Related Contents:
- Java method returns the given variable instead of the result
- Generating all permutations of a given string
- Value Change Listener to JTextField
- How do I get the SharedPreferences from a PreferenceActivity in Android?
- Java: export to an .jar file in eclipse
- android – save image into gallery
- What is the difference between dynamic and static polymorphism in Java?
- What is this spring.jpa.open-in-view=true property in Spring Boot?
- How to serve .html files with Spring
- Can I connect to SQL Server using Windows Authentication from Java EE webapp?
- Why should wait() always be called inside a loop
- Java – Does null variable require space in memory
- Resizing image in Java
- removing invalid XML characters from a string in java
- “Non-static variable this cannot be referenced from a static context” when creating an object
- midpoint between two latitude and longitude
- Count int occurrences with Java8
- How to clone a JPA entity
- How to take a screenshot in Java? [duplicate]
- HashSet vs LinkedHashSet
- Why does every object in Java implicitly extend java.lang.Object class?
- How to get selected xls file path from uri for SDK 17 or below for android?
- Why is it possible to recover from a StackOverflowError?
- How to fix INSTALL_PARSE_FAILED_MANIFEST_MALFORMED in my android application
- How to populate JTable from ResultSet?
- Exception without stack trace in Java
- String to char array Java
- iText pdf not displaying Chinese characters when using NOTO fonts or Source Hans
- Java Regex – Using String’s replaceAll method to replace newlines
- SecureRandom with NativePRNG vs SHA1PRNG