diff --git a/java/ArrayDemo.java b/java/ArrayDemo.java new file mode 100644 index 0000000..3b33fe9 --- /dev/null +++ b/java/ArrayDemo.java @@ -0,0 +1,20 @@ +package java; + +public class ArrayDemo{ + + // create a function to find the maximum element in an array + + // create a function that takes in an array of numbers and returns the sum of all the odd numbers. + + // create a function to add elements of two arrays + + + // create a main method + public static void main(String[] args){ + // create an array + + // print the array + + } + +} \ No newline at end of file diff --git a/java/StringDemo.java b/java/StringDemo.java new file mode 100644 index 0000000..f3ecce9 --- /dev/null +++ b/java/StringDemo.java @@ -0,0 +1,19 @@ +package java; + +public class StringDemo { + + // create a function to reverse a string + + // create a function to check whether a string is palindrome or not + + // create a function to convert lowercase to uppercase and vice versa + + + // create a main method + public static void main(String[] args) { + // create a string + + } + + +}