diff --git a/src/main/java/Hello.java b/src/main/java/Hello.java index 433e3b5..ba57d50 100644 --- a/src/main/java/Hello.java +++ b/src/main/java/Hello.java @@ -13,11 +13,21 @@ 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 i,j,temp; + for (i=0;iarray[j+1]){ + temp=array[j+1]; + array[j+1]=array[j]; + array[j]=temp; + } + } + } return array; }