java练习四

Contributor:游客130069360 Type:代码 Date time:2019-11-14 23:30:55 Favorite:9 Score:0
返回上页 Report
请选择举报理由:




Collection Modify the typo
while(p1<=mid) tmp[k++]=a[p1++];//
while(p2<=right) tmp[k++]=a[p2++];
for (int i = left; i <=right; i++)
a[i]=tmp[i];
}
public void mergeSort(int [] a.int start.int end){
if(start<end){
int mid=(start+end)/2;//
mergeSort(a, start, mid, end);//
mergeSort(a, mid+1, end);//
merge(a, start, mid, end);//
}
}
public static void main(String[] args){
GuiSort zzz=new GuiSort();
int[] a = {49 38 65 97 76 13 27 50 };
zzz.mergeSort(a, 0, a.length-1);
System.out.print(e+"");
}
]
import java.util.*;
/**
*Author:
*Description:
*Date
*Modifid By:
*/
public class EmptyTrl {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
System.out.println();
int num=sc.nextInt();
for(int i=0; i<num-1;i++){
for(int i=0;i<num-1-i;j>0;j--){
System.out.print("");
}
声明:以上文章均为用户自行添加,仅供打字交流使用,不代表本站观点,本站不承担任何法律责任,特此声明!如果有侵犯到您的权利,请及时联系我们删除。
Hot degree:
Difficulty:
quality:
Description: the system according to the heat, the difficulty, the quality of automatic certification, the certification of the article will be involved in typing!

This paper typing ranking TOP20

登录后可见

用户更多文章推荐