Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions JAVA/HelloRecursively.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
public class HelloRecursively {
private void hello(int n) {
System.out.println(n);
if (n < 1) {
System.out.println("End");
} else {
hello(n-1);
}
}

public static void main(String[] args) {
HelloRecursively hr = new HelloRecursively();
hr.hello(200);
}
}
2 changes: 1 addition & 1 deletion JAVA/bubble.java.txt → JAVA/bubble.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static void main(String[] args)
System.out.print("\n Enter Size of Array\n");
n=sc.nextInt();
int [] a=new int[n];
System.out.print("GIVE NUMBERS FOR ARRAY :");
System.out.print("GIVE NUMBERS FOR ARRAY (separated by spaces):");
for( int i=0;i<=n-1;i++)
{
a[i]=sc.nextInt();
Expand Down