달력

12

« 2019/12 »

  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  •  
  •  
  •  
  •  

'규칙'에 해당되는 글 2

  1. for문
  2. Everything - Search Syntax, 검색 옵션
2019. 5. 15. 15:43

for문 Development/Java




 

Java - for

·       특정한 명령들을 정해진 규칙에 따라 반복처리 사용하는 제어문입니다.

·       초기식, 조건식, 증감식을 모두 포함하고 있는 반복문입니다.

·        while 문보다는 간결하게 반복문을 표현할 있습니다.

 

 

 

 

 

 

 

for문의 구성형식

for(초기식 ; 조건식 ; 증감식){

수행문1;

수행문2;

}

 

 

초기식

·       가장 먼저 수행하는 부분이며 다시 수행되지 않습니다.

·       다중 for문에서는 예외

·       반복문에 사용할 변수를 초기화

조건식

·       초기식 다음으로 수행하는 부분이며

·       loop 돌때마다 한번씩 비교하여 반복을 수행해야 할지 반복을 벗어나야 할지를 결정합니다.

증감식

·       증감식은 loop 수행할 때마다 조건식을 비교하기 전에 항상 수행하며( 반복이 끝날때 마다 수행)

·       조건식에 사용되는 변수의 값을 증가 시키거나 감소 시켜 loop 수행하거나 무한 루프를 방지하는 부분입니다.

 

 

 

 

 

 

 

 

 

for 플로우 차트

for(int i = 1 ; i <= 7 ; i++)

System.out.println(i+"번째 수행");

 




 

모든 반복문은 무한루프에 빠지지 않도록 주의!

 

Posted by codedragon codedragon

댓글을 달아 주세요

   

Operators:

space

AND

|

OR

!

NOT

< >

Grouping

" "

Search for an exact phrase.

   

Wildcards:

*

Matches zero or more characters.

?

Matches one character.

*.*

Same as *

   

Macros:

quot:

Literal double quote (")

apos:

Literal apostrophe (')

amp:

Literal ampersand (&)

lt:

Literal less than (<)

gt:

Literal greater than (>)

#x:

Literal unicode character x code.

   

Modifiers:

ascii:

Enable fast ASCII case comparisons.

case:

Match case.

diacritics:

Match diacritical marks.

file:

Match files only.

folder:

Match folders only.

noascii:

Disable fast ASCII case comparisons.

nocase:

Do not match case.

nodiacritics:

Do not match diacritical marks.

nofileonly:

Do not allow files only.

nofolderonly:

Do not allow folders only.

nopath:

Do not match path.

noregex:

Disable regex.

nowfn:

Do not match the whole filename.

nowholefilename:

Do not match the whole filename.

nowholeword:

Do not match whole words only.

nowildcards:

Disable wildcards.

noww:

Do not match whole words only.

path:

Match path and file name.

regex:

Enable regex.

utf8:

Disable fast ASCII case comparisons.

wfn:

Match the whole filename.

wholefilename:

Match the whole filename.

wholeword:

Match whole words only.

wildcards:

Enable wildcards.

ww:

Match whole words only.

   

Functions:

attrib:<attributes>

Search for files and folders with the specified file attributes.

attributes:<attributes>

Search for files and folders with the specified file attributes.

child:<filename>

Search for folders that contain a child with a matching filename.

dateaccessed:<date>

Search for files and folders with the specified date accessed.

datecreated:<date>

Search for files and folders with the specified date created.

datemodified:<date>

Search for files and folders with the specified date modified.

daterun:<date>

Search for files and folders with the specified date run.

da:<date>

Search for files and folders with the specified date accessed.

dc:<date>

Search for files and folders with the specified date created.

dm:<date>

Search for files and folders with the specified date modified.

dr:<date>

Search for files and folders with the specified date run.

dupe:

Search for duplicated filenames.

empty:

Search for empty folders.

ext:<list>

Search for files with a matching extension in the specified semi-colon delimited extension list.

fsi:<index>

Search for files and folders in the specified zero based internal file system index.

len:<length>

Search for files and folders that match the specified filename length.

parents:<count>

Search for files and folders with the specified number of parent folders.

rc:<date>

Search for files and folders with the specified recently changed date.

recentchange:<date>

Search for files and folders with the specified recently changed date.

root:

Search for files and folders with no parent folders.

runcount:<count>

Search for files and folders with the specified run count.

size:<size>

Search for files with the specified size in bytes.

type:<type>

Search for files and folders with the specified type.

   

Function Syntax:

function:value

Equal to value.

function:<=value

Less than or equal to value.

function:<value

Less than value.

function:=value

Equal to value.

function:>value

Greater than value.

function:>=value

Greater than or equal to value.

function:start..end

Is in the range of values from start to end.

function:start-end

Is in the range of values from start to end.

   

Size Syntax:

size[kb|mb|gb]

   

Size Constants:

empty

  

tiny

0 KB < size <= 10 KB

small

10 KB < size <= 100 KB

medium

100 KB < size <= 1 MB

large

1 MB < size <= 16 MB

huge

16 MB < size <= 128 MB

gigantic

size > 128 MB

unknown

  

   

Date Syntax:

year

  

month/year or year/month

depending on locale settings

day/month/year, month/day/year or year/month/day

depending on locale settings

   

Date Constants:

today

yesterday

tomorrow

<last|past|prev|current|this|coming|next><year|month|week>

<last|past|prev|coming|next><x><years|months|weeks|hours|minutes|mins|seconds|secs>

january|february|march|april|may|june|july|august|september|october|november|december

jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec

sunday|monday|tuesday|wednesday|thursday|friday|saturday

sun|mon|tue|wed|thu|fri|sat

unknown

   

Attribute Constants:

A

Archive

C

Compressed

D

Directory

E

Encrypted

H

Hidden

I

Not content indexed

L

Reparse point

N

Normal

O

Offline

P

Sparse file

R

Read only

S

System

T

Temporary

V

Device

   

Posted by codedragon codedragon

댓글을 달아 주세요