diff --git a/PrintHelloWorld/HelloWorldMap.java b/PrintHelloWorld/HelloWorldMap.java index f28aa5f..e69de29 100644 --- a/PrintHelloWorld/HelloWorldMap.java +++ b/PrintHelloWorld/HelloWorldMap.java @@ -1,13 +0,0 @@ -import java.util.HashMap; -import java.util.Map; - -public class HelloWorldMap { - public static void main(String[] args) { - Map map = new HashMap<>(); - map.put("helloWorld", "Hello World!"); - - for (String key: map.keySet()) { - System.out.println(map.get(key)); - } - } -} \ No newline at end of file diff --git a/rotateby90degree.java b/rotateby90degree.java new file mode 100644 index 0000000..53467ba --- /dev/null +++ b/rotateby90degree.java @@ -0,0 +1,47 @@ +import java.io.*; +import java.util.*; + +public class Main { + + public static void main(String[] args) throws Exception { + Scanner sc= new Scanner(System.in); + int n=sc.nextInt(); + int arr[][]=new int [n][n]; + for(int i=0;i