Problem Solving with Algorithms

반응형

오늘부턴 자바에 대한 모든것을 외워버리겠다는 생각으로 튜터리얼을 써본다.

 

www.w3schools.com/java/default.asp

 

public class Myclass {
	public static void main(String[] args) {
    	System.out.println("Hello World");
    }
}

티스토리에는 쉬프트탭이 안되는 치명적인 단점이 있따...

 

 

 

 

앗 요고 내가 생각했던거랑 비슷하네.. 이런 방식이 공부에는 좋음

 

하다가 나도 모르게 다 풀어버렸네..

 

 

 

 

www.w3schools.com/java/java_data_types.asp

 

Java Data Types

Java Data Types Java Data Types As explained in the previous chapter, a variable in Java must be a specified data type: Example int myNum = 5;               // Integer (whole number) float myFloatNum = 5.99f;    // Floating point number ch

www.w3schools.com

 

 

 

  • Widening Casting (automatically) - converting a smaller type to a larger type size
    byte -> short -> char -> int -> long -> float -> double

  • Narrowing Casting (manually) - converting a larger type to a smaller size type
    double -> float -> long -> int -> char -> short -> byte

 

 

 

www.w3schools.com/java/java_operators.asp

 

Java Operators

Java Operators Java Operators Operators are used to perform operations on variables and values. In the example below, we use the + operator to add together two values: Although the + operator is often used to add together two values, like in the example ab

www.w3schools.com

 

비트연산자

쪽은 다시봐야겠다.

 

 

 

String

indexOf와 concat 밖에 안가르쳐주는구나

String에는 훨씬더 많은 기술들이 필요하다.

 

 

Math

이것도 max, min, sqrt, abs, random 만 갈켜주네. 더 필요한데?

Math.random() returns a random number between 0.0 (inclusive), and 1.0 (exclusive)
int randomNum = (int)(Math.random() * 101); // 0 to 100

 

Array

여기도 좀 더 기술이 필요하다

정렬, 멀티디멘전 정렬 등

 

여기까지 기초는 끝나고,

Java의 꽃인 Java classes 로 넘어간다.

다음 포스팅으로..

www.w3schools.com/java/java_oop.asp

 

Java OOP (Object-Oriented Programming)

Java OOP Java - What is OOP? OOP stands for Object-Oriented Programming. Procedural programming is about writing procedures or methods that perform operations on the data, while object-oriented programming is about creating objects that contain both data a

www.w3schools.com

 

반응형
반응형

공유하기

facebook twitter kakaoTalk kakaostory naver band