블로그
-
[java] print와 println, printf 비교 및 printf에서 사용되는 서식 지정자 종류
123456789101112131415public class PrintfTest { public static void main(String[] args) { String name=" bongha"; System.out.println("My name is" + name); System.out.print("My name is " + name + "\n"); System.out.printf
blog.naver.com · 2016.05.04
-
How to check if date is valid in Java
dateToValidate, String dateFromat){ if(dateToValidate == null){ return false; } SimpleDateFormat sdf { e.printStackTrace(); return false; } return true; } } By default, SimpleDateFormat.setLenient() is
blog.naver.com · 2016.03.15
-
비교해볼까? stringByAppendingFormat vs stringByAppendingString
//Format string is not a string literal(potentially insecure) //curInputValue = [curInputValue stringByAppendingString
blog.naver.com · 2016.02.16
-
변종 return-oriented programming 기법들 (JOP, SOP, BROP, SROP)
Programming : https://nebelwelt.net/publications/files/13PPREW.pdf(String Oriented Programming: When ASLR is not Enough) https://events.ccc.de/congress/2011/Fahrplan/attachments/1972_28c3-SOP-payerm.pdf
blog.naver.com · 2016.01.17
-
Request시 Parameter 값 설정
@RequestParam나 기타 Parameter 값을 받아올 때 Null 이거나 Type이 맞지 않는 경우 다음의 Error 또는 Exception이 발생 required string parameter 'id' is not present required Integer parameter 'id' is not present 이를 해결하기 위한 방법으로 아래와 같이
blog.naver.com · 2015.12.01
-
[ myNote ]
This information is passed as a sequence of characters appended to the request URL in what's called a query string.
blog.naver.com · 2015.01.13
-
Java StringTokenizer과 split 각각의 단어 토콘을 분리
StringTokenizer st = new StringTokenizer("this is a test"); while (st.hasMoreTokens()) { System.out.println (st.nextToken()); } 결과 : this is a test String[] result = "this is a test".split("\\s"); for (int x=0
blog.naver.com · 2014.10.16
-
Emobodied Abstraction Model
How do we distinguish between meaningful words and meaningless string of symbols? How do we know what an object is for? In general, how do we know and remember about the world?
blog.naver.com · 2014.11.23
-
C언어 strtok함수를 사용하여 토큰 분리하기
#include #include char string[] = "a string,of ,,tokens"; char *token; char in[] = "a b c,12,23,24\ thello\ntest"; char out[] = "hello"; int count; int main(void) { token = strtok(string, " ,"); // There
blog.naver.com · 2014.10.16
-
2014년 3월 17일 오후 7시 38분에 저장한 글입니다.
When the sun goes down, it is evening. The moon shines with a bright light. He is tangled in the string. Don’t worry! He can get out. My dad tumbled onto the ground.
blog.naver.com · 2014.05.06