반응형 Development/Java2 FileOutputStream vs. FileWriter FileOutputStream vs. FileWriter When we use Java to write something to a file, we can do it in the following two ways. One uses FileOutputStream, the other uses FileWriter.Using FileOutputStream:File fout = new File(file_location_string); FileOutputStream fos = new FileOutputStream(fout); BufferedWriter out = new BufferedWriter(new OutputStreamWriter(fos)); out.write("something");Using FileWrite.. 2018. 9. 30. Java Date 비교 import java.text.DateFormat;import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Calendar;import java.util.Date; public class JodaDateDifferentExample {public static void main(String[] args) throws ParseException { // 시작 , 끝 날짜 임의 세팅String s1 = "2017-01-10";String s2 = "2017-01-17";String s3 = "2017-01-09";DateFormat df = new SimpleDateFormat("yyyy-MM-dd");// Date타입.. 2017. 2. 8. 이전 1 다음 반응형