반응형

프로그래밍 영어 3

프로그래밍 영어 공부 - 자바 - java.lang.String 클래스 4

※ String 클래스 [원문] The Java language provides special support for the string concatenation operator (+), and for conversion of other objects to strings. String concatenation is implemented through the StringBuilder(or StringBuffer) class and its append method. String conversions are implemented through the method toString, defined by Object and inherited by all classes in Java. For additional inf..

프로그래밍 영어 공부 - 자바 - java.lang.String 클래스 2

※ String 클래스 [원문] For example:String str="abc";is equivalent tochar data[]={'a','b','c'};String str=new String(data); Here are some more examples of how strings can be used:System.out.println("abc");String cde="cde";System.out.println("abc"+cde);String c="abc".substring(2,3);String d=cde.substring(1,2); 예를 들면:String str="abc";은 아래의 2줄과 결국 같은 셈이다.char data[]={'a','b','c'};String str=new String(da..

프로그래밍 영어 공부 - 자바 - java.lang.String 클래스 1

※ String 클래스 [원문] The String class represents character strings. All string literals in Java programs, such as "abc", are implemeted as instances of this class.Strings are constant; their values cannot be changed after they are created. String buffers support mutable strings. Because objects are immutable they can be shared. String 클래스는 문자열들을 담당한다. 자바 프로그램에서 "abc" 같은 모든 리터럴들은 이 String 클래스의 인스턴스들..

반응형