diff --git a/src/main/java/Hello.java b/src/main/java/Hello.java index 433e3b5..8459e66 100644 --- a/src/main/java/Hello.java +++ b/src/main/java/Hello.java @@ -13,11 +13,25 @@ public static void main(String[] args) { public static String greetingMessage(String name){ // TODO Return string in this format - "Hello, " + given name. - return ""; + return "Hello, "+name; } public static int[] bubbleSort(int[] array){ // TODO Sort the given array in an ascending order and return the sorted array. + int k; + for (int i=0;i< array.length-1;i++) + { + for (int j=i; jarray[j]) + { + k =array[i]; + array[i]=array[j]; + array[j]=k; + } + } + } + return array; }