class StringCompare {
static String array1[] = {
"IMF", "제주도", "자바도사", "한글나라", "Computer", "모카", "JAVA", "인터넷탐색",
"초롱초롱", "come", "바람", "스크립터", "군고구마", "도서", "their","contry" } ;
public static void main(String args[]) {
System.out.println("======= 정렬전 데이터 ==========");
for(int k = 0; k < array1.length; k++)
System.out.print(array1[k] + " ");
System.out.println();
System.out.println("======= 정렬후 데이터 ==========");
for(int j = 0; j < array1.length; j++) {
for(int i = j + 1; i < array1.length; i++) {
if(array1[i].compareTo(array1[j]) < 0) {
String t = array1[j];
array1[j] = array1[i];
array1[i] = t;
}
}
System.out.print(array1[j] + " ");
}
}
}
public class PopOnter02 {
public static void main(String[] args) {
String s1 = new String("Test");
String s2 = new String("ABC");
String s3;
System.out.println(s1+s2);
System.out.println(s1);
System.out.println(s2);
s3=s1+s2;
System.out.println(s1);
System.out.println(s2);
System.out.println(s3);
//s1.append(s2); //추가
//System.out.println(s1);
}
}
- Open in Google Docs Viewer
- Open link in new tab
- Open link in new window
- Open link in new incognito window
- Download file
- Copy link address
- Edit PDF File on PDFescape.com
element
| Font | |
|---|---|
| font-family | |
| font-size | |
| font-style | |
| font-variant | |
| font-weight | |
| letter-spacing | |
| line-height | |
| text-decoration | |
| text-align | |
| text-indent | |
| text-transform | |
| white-space | |
| word-spacing | |
| color | |
| Background | |
| bg-attachment | |
| bg-color | |
| bg-image | |
| bg-position | |
| bg-repeat | |
| Box | |
| width | |
| height | |
| border-top | |
| border-right | |
| border-bottom | |
| border-left | |
| margin | |
| padding | |
| max-height | |
| min-height | |
| max-width | |
| min-width | |
| outline-color | |
| outline-style | |
| outline-width | |
| Positioning | |
| position | |
| top | |
| bottom | |
| right | |
| left | |
| float | |
| display | |
| clear | |
| z-index | |
| List | |
| list-style-image | |
| list-style-type | |
| list-style-position | |
| Table | |
| vertical-align | |
| border-collapse | |
| border-spacing | |
| caption-side | |
| empty-cells | |
| table-layout | |
| Effects | |
| text-shadow | |
| -webkit-box-shadow | |
| border-radius | |
| Other | |
| overflow | |
| cursor | |
| visibility |
