public class WrapperEx {
public static void main(String[] args) {
// Wrapper Class
Integer value = 10;// Wrapper class 타입이라 null 가능
int value2 = 20; // primitive 타입이라 null 불가
// value = null;
// value2 = null;
System.out.println(value + value2);
String s = "123456"; // parse기능 Integer.parseInt()
System.out.println(Integer.parseInt(s) + 100); // 특정문자열에서 숫자값을 가져오는 기능 단 s 에 "123456ab"라면 안됨.
//데이터 베이스에는 비어있는 값과 null이 다 존재해서,
//지금부터 프리미티어 타입 X 웨퍼클래서 타입으로 O
//(웨퍼클래스 타입)레퍼런스 타입이라 4byte
Byte v1 = 100;
Short v2 = 200;
Integer v3 = 300;
Long v4 = 500L;
Float v5 = 1.23f;
double v6 = 1.23;
Character v7 = 'a';
Boolean v8 = false;
}
}
---------HTML
atom-one-dark
<!--코드블럭-->
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.2/styles/base16/chalk.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.2/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<!-- 코드 블럭 라인 넘버 표시 -->
<script src="./images/highlightjs-line-numbers.js"></script>
<script> hljs.initLineNumbersOnLoad();
$(document).ready(function() {
$('code.hljs').each(function(i, block) {
hljs.lineNumbersBlock(block);
});
});
</script>
<!-- 코드블럭 글씨 크기 -->
<style>
pre > code {font-size: 13.5px;}
</style>
---------CSS
code,
kbd,
samp {
font-family: monospace, monospace;
/* 1 */
font-size: 0.9em;
/* 2 */
line-height: 130%;
}
참고블로그
https://dailylifeofdeveloper.tistory.com/361
'basic_memo' 카테고리의 다른 글
잠깐 저장 .. sql문 (0) | 2023.04.03 |
---|---|
자바 ORM 표준 JPA 프로그래밍_김영한님 gitbook (0) | 2023.04.03 |
Git ) Git을 사용하여 협력 - Git 깃허브 Github 사용 (0) | 2023.03.29 |