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
7 changes: 7 additions & 0 deletions Aa Bunch of Beginner JAVA Programs/ae.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import java.util.*;
class ae
{
public static void main()
{
Scanner sc = new Scanner(System.in);

Binary file added Aa Bunch of Beginner JAVA Programs/aryan_22.class
Binary file not shown.
5 changes: 5 additions & 0 deletions Aa Bunch of Beginner JAVA Programs/aryan_22.ctxt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#BlueJ class context
comment0.target=aryan_22
comment1.params=
comment1.target=void\ main()
numComments=2
43 changes: 43 additions & 0 deletions Aa Bunch of Beginner JAVA Programs/aryan_22.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

import java.util.*;
class aryan_22
{
public static void main()
{
Scanner sc = new Scanner(System.in);
System.out.println("Enter a sentence");
String str=sc.next()+" ";
char ch;
String w="";
int l=str.length();

for(int i=0;i<l;i++)
{
ch=str.charAt(i);
if(ch!=' ')
{
if(ch=='A')
ch='E';
if(ch=='E')
ch='I';
if(ch=='I')
ch='O';
if(ch=='O')
ch='U';
if(ch=='U')
ch='A';
}
else
{
str+=w;
w="";
}
System.out.println(str);
}
}
}





Binary file not shown.
5 changes: 5 additions & 0 deletions Aa Bunch of Beginner JAVA Programs/border_elements.ctxt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#BlueJ class context
comment0.target=border_elements
comment1.params=
comment1.target=void\ main()
numComments=2
36 changes: 36 additions & 0 deletions Aa Bunch of Beginner JAVA Programs/border_elements.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import java.util.*;
class border_elements
{
public static void main()
{
Scanner sc = new Scanner(System.in);
System.out.println("Enter value of 'n'");
int n=sc.nextInt();
int arr[][]=new int[n][n],s=0;
System.out.println("Enter the numbers");
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
{
arr[i][j]=sc.nextInt();
s+=arr[i][j];
}
}
int s1=0;
System.out.println(" THE OUTPUT ");
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
{
if(i==0||i==(n-1)||j==0||j==(n-1))
{
s1+=arr[i][j];
System.out.print(arr[i][j]);
}
System.out.print(" ");
}
System.out.println();
}
System.out.println("The sum of internal no.s = "+(s-s1));
}
}
Binary file added Aa Bunch of Beginner JAVA Programs/cyclic.class
Binary file not shown.
5 changes: 5 additions & 0 deletions Aa Bunch of Beginner JAVA Programs/cyclic.ctxt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#BlueJ class context
comment0.target=cyclic
comment1.params=
comment1.target=void\ main()
numComments=2
29 changes: 29 additions & 0 deletions Aa Bunch of Beginner JAVA Programs/cyclic.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import java.util.*;
class cyclic
{
public static void main()
{
Scanner sc = new Scanner(System.in);
System.out.println("Enter the no. of numbers");
int n=sc.nextInt();
int arr[]=new int [n];
int temp;
System.out.println("Enter the numbers");
for(int i=0;i<n;i++)
{
arr[i]=sc.nextInt();

}
for(int i=0;i<n-1;i++)
{
temp=arr[i];
arr[i]=arr[n-1];
arr[n-1]=temp;
}
for(int i=0;i<n;i++)
{
System.out.println(arr[i]);
}

}
}
Binary file not shown.
5 changes: 5 additions & 0 deletions Aa Bunch of Beginner JAVA Programs/decimal_to_binary.ctxt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#BlueJ class context
comment0.target=decimal_to_binary
comment1.params=
comment1.target=void\ main()
numComments=2
25 changes: 25 additions & 0 deletions Aa Bunch of Beginner JAVA Programs/decimal_to_binary.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import java.util.*;
class decimal_to_binary
{
public static void main()
{
Scanner sc = new Scanner(System.in);
System.out.println("Enter a Number");
int n=sc.nextInt();
String str="";
int k=n;
for(int j=0;j>=0;j++)
{
str=(k%2)+str;
k=k/2;
if(k/2==0)
{
str=(k)+str;
break;
}
}
System.out.println(str);

}
}

Binary file not shown.
5 changes: 5 additions & 0 deletions Aa Bunch of Beginner JAVA Programs/duplicate.ctxt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#BlueJ class context
comment0.target=duplicate
comment1.params=
comment1.target=void\ main()
numComments=2
45 changes: 45 additions & 0 deletions Aa Bunch of Beginner JAVA Programs/duplicate.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import java.util.*;
class duplicate
{
public static void main()
{
Scanner sc = new Scanner(System.in);
System.out.println("Enter the value of n ");
int n=sc.nextInt();
int arr[]=new int[n];
int arr2[]=new int[n];
int count=0,k=0;
System.out.println("Enter the numbers");
for(int i=0;i<n;i++)
{
arr[i]=sc.nextInt();

}
for(int i=0;i<n;i++)
{
int no=arr[i];
for(int j=0;j<n;j++)
{
if (no==arr[j])
{
count++;
}
}
if(count==1)
{
arr2[k++]=no;
}
count=0;
}

for(int i=0;i<n;i++)
{
System.out.println(arr2[k]);
}
}
}





Binary file added Aa Bunch of Beginner JAVA Programs/fgh.class
Binary file not shown.
5 changes: 5 additions & 0 deletions Aa Bunch of Beginner JAVA Programs/fgh.ctxt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#BlueJ class context
comment0.target=fgh
comment1.params=
comment1.target=void\ main()
numComments=2
39 changes: 39 additions & 0 deletions Aa Bunch of Beginner JAVA Programs/fgh.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import java.util.*;
class fgh
{
public static void main()
{
Scanner sc = new Scanner(System.in);
System.out.println("Enter the value of n ");
int n=sc.nextInt();
int arr[]=new int[n];
int arr2[]=new int[n];
int count,k=0;
System.out.println("Enter the numbers");
for(int i=0;i<n;i++)
{
arr[i]=sc.nextInt();
}
for(int i=0;i<n;i++)
{
int m=arr[i];
count=0;
for(int j=0;j<=i;j++)
{
if(arr[j]==arr[i])
{
count++;
}
}
if(count>1)
{
continue;
}
else
{
System.out.println(m);
}

}
}
}
Binary file added Aa Bunch of Beginner JAVA Programs/first.class
Binary file not shown.
5 changes: 5 additions & 0 deletions Aa Bunch of Beginner JAVA Programs/first.ctxt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#BlueJ class context
comment0.target=first
comment1.params=
comment1.target=void\ main()
numComments=2
30 changes: 30 additions & 0 deletions Aa Bunch of Beginner JAVA Programs/first.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import java.util.*;
class first
{
public static void main()
{
Scanner sc = new Scanner(System.in);
System.out.println(" Enter a sentence in uppercase");
String str=sc.next();
str=str.toUpperCase();
char ch;
String word="JAKA";
for(int i=0;i<str.length();i++)
{
ch=str.charAt(i);
if(ch==' ')
{
System.out.print(word.charAt(0));


}
if(ch!=' ')
{
word+=ch;
}
}
}
}



Binary file added Aa Bunch of Beginner JAVA Programs/half.class
Binary file not shown.
5 changes: 5 additions & 0 deletions Aa Bunch of Beginner JAVA Programs/half.ctxt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#BlueJ class context
comment0.target=half
comment1.params=args
comment1.target=void\ main(java.lang.String[])
numComments=2
7 changes: 7 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

### Hi there follow the pattern to add your bio

#### Name: [ARYAN ANAND](https://github.com/aryan-anand-2003)
- Place: Jamshedpur, Jharkhand, India
- Bio: Cute 11th Grader from India
- GitHub: [aryan-anand-2003](https://github.com/aryan-anand-2003)




#### Name: [Caroline Rodrigues](https://github.com/caroline-rodrigues)

Expand Down