diff --git a/BubbleSort.java b/BubbleSort.java new file mode 100644 index 0000000..10d517c --- /dev/null +++ b/BubbleSort.java @@ -0,0 +1,32 @@ +public class BubbleSort { + + public static void main(String[] args) { + + if(args.length == 0){ + System.out.println("Wrong parameter input"); + return; + } + + int number[] = new int[25]; + int length = args.length; + int temp=0; + + for(int i=0; i number[j+1]){ + temp = number[j]; + number[j] = number[j+1]; + number[j+1] = temp; + } + } + } + + for(int i=0; i= 1 && score < 20){ + System.out.println("Your score is E"); + } + else if(score >= 20 && score < 40){ + System.out.println("Your score is D"); + } + else if(score >=40 && score < 60){ + System.out.println("Your score is C"); + } + else if(score >=60 && score < 80){ + System.out.println("Your score is B"); + } + else if(score >=80 && score < 100){ + System.out.println("Your score is A"); + } + else{ + System.out.println("Your score is not identified"); + } + } +} \ No newline at end of file