- package com.heima;
- public class De_StringBuffer {
- public static void main(String[] args){
- StringBuffer sb = new StringBuffer();
- sb.append(true);
- sb.append("heima");
- sb.append(100);
- System.out.println(sb);
- }
-
- }
-
- for(int i = 0;i < arr.length - 1;i++){
- for(int j = 0;j < arr.length - 1 - i;j++){
- if(arr[j] > arr[j + 1]){
- int temp = arr[j];
- arr][j] = arr[j + 1];
- arr[j + 1] = temp;
- }
-
- }
- }
- public static void print(int[] arr){
- System.out.println(arr[i]);
- }
-
-
复制代码 |
|