본문 바로가기 메뉴 바로가기

Studying programming

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Studying programming

검색하기 폼
  • Jimin's Programming (194)
    • Algorithms (54)
    • JavaScript (16)
    • Vue.js (3)
    • Node.js (3)
    • React.js (7)
    • React Native (0)
    • Spring Boot (13)
    • JAVA (58)
    • C++ (17)
    • Programming (19)
    • Computer basics (4)
  • 방명록

JAVA (58)
Java Data type (primitive & non-primitive)

Primitive Data Types Data Type Size Description byte 1 byte (8-bit) -128 to 127 short 2 bytes -32,768 to 32,767 int 4 bytes -2,147,483.648 to 2,147,483,647 long 8 bytes -9,223.372,036.854,775.808 to 9,223.372,036,854,775,808 float 4 bytes 6 to 7 decimal digits double 8 bytes 15 decimal digits boolean 1 byte true or false char 2 bytes a single character or letter Non-primitive Data Types Non-prim..

JAVA 2018. 12. 18. 15:33
Java loop example

HackerRank 123456789101112131415161718192021222324import java.util.*;import java.io.*; class Solution { public static void main(String[] argh) { Scanner in = new Scanner(System.in); int t = in.nextInt(); for (int i = 0; i

JAVA 2018. 12. 18. 09:43
Scanner class in Java(User input)

Scanner ClassMethods Method Type nextDouble() double nextFloat() float nextInt() int nextLine() String next() next complete token*token: 자바를 구성하는 최소 단위(smallest elements)를 말한다. e.g) 변수, 키워드, 연산자 etc. 구분자(delimiter)에 의해 구분되어질 수 있음 What's the difference between nextLine() and next() ?nextLine() reads the string including space but next() only reads till space. HackerRank123456789101112131415161718..

JAVA 2018. 12. 18. 07:58
Displaying text in Java (println and printf)

println e.g) System.out.println("Hello World" + 변수명)'+' 을 사용하면 변수명과 문자열(" " 사용) 을 동시에 사용할 수 있다. 자동줄바꿈기능 printfe.g) System.out.printf("Hello World %d",변수명)format specifier 를 사용해서 다른 형식의 출력을 허용한다.자동 줄바꿈이 되지 않음 Printf format specifier Format Specifier Description %d integer 정수 출력 %f Decimal format 소수점 출력 %c Character 문자 출력 %s String 문자열 출력 %n line separator 줄바꿈 HackerRank Java Output Formatting Que..

JAVA 2018. 12. 18. 04:40
이전 1 ··· 7 8 9 10 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • algorithm
  • easy javascript algorithm
  • Collection Framework
  • 프로그래머스 알고리즘
  • compareTo()
  • math.max
  • HackerRank Algorithm
  • ... in Javascript
  • math.abs
  • javascript
  • code refactoring
  • hackerrank
  • java
  • rest parameter
  • Javascript Algorithm
  • C++
  • HashMap
  • Object type casting
  • 알고리즘
  • 프로그래머스 알고리즘문제
  • hackerrank javascript solution
  • substring()
  • string class in java
  • spring boot application
  • hackerrank javascript
  • hackerrank solution
  • repeat()
  • equals()
  • easy algorithm
  • 프로그래머스
more
«   2025/11   »
일 월 화 수 목 금 토
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바