Dilrong

  • 블로그홈

Java 13

JAVA 구구단

public class NineToNine { public static void main(String[] args) { int mt[][] = new int[9][9]; //구구단 표 저장 배열 int i,j; //구구단 배열에 저장 for(i=0; i

프로그래밍 2013.11.11

JAVA 파일 읽고쓰기

//데이터 파일 txt필요 import java.io.*; public class MyFileReader { public static void main(String[] args) { int i; char myChar; try{ //클래스 선엉 FileReader in = new FileReader("MyFileReader.java"); //-1 EOF while ((i=in.read()) != -1){ myChar = (char)i; //(char) 형변환 System.out.println(myChar); } } catch(IOException e) { System.out.println(e.toString()); } } } import java.io.*; public class MyFileCopy { p..

프로그래밍 2013.10.21

Java 데이터 타입

public class DataType { public static void main(String[] args) { //변수 선언 boolean myBoolean; char myChar; byte myByte; int myInt; float myFloat; double myDouble; //상수 대입 myBoolean = true; myChar = 'X'; //'문자', "문자열" myByte = 120; myInt = 1004; myFloat = 12.34F; //float 형은 F를 붙임 myDouble = 23.45; //출력 System.out.println("boolean : "+myBoolean); System.out.println("char : "+myChar); System.out.prin..

프로그래밍 2013.10.21
1 2
더보기
프로필사진

안녕하세요. 프로그램을 사유하고 싶은 개발자가 되고 싶은 Dilrong입니다.

  • 분류 전체보기 (133)
    • 프로그래밍 (108)
    • 책 (9)
    • 창업 (2)
    • 저장소 (14)

Tag

Git, 유니티, Java, python, 영상처리, cocos2d-x, 아두이노, C, API, X-Hyper270, 안드로이드, 운영체제, 자료구, C#, C++, 컴퓨터구조, 창업, win32 api, 자료구조, 디버그,

Copyright © Kakao Corp. All rights reserved.

티스토리툴바