Skip to content

Commit edd0991

Browse files
committed
Java programming is started :)
0 parents commit edd0991

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+757
-0
lines changed

core programs/ASCIIchart.class

914 Bytes
Binary file not shown.

core programs/ASCIIchart.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
public class ASCIIchart {
2+
public static void main(String[] args) {
3+
for(int i=1;i<=256;i++){
4+
System.out.println("unicode of" + (char)i + " is "+ i);
5+
}
6+
}
7+
8+
}

core programs/ArmstromgNo.class

624 Bytes
Binary file not shown.

core programs/ArmstromgNo.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
public class ArmstromgNo {
2+
public static void main(String[] args) {
3+
int a = 183 , b , i , f=0 , n ;
4+
n = a;
5+
for(i=1;i<=3;i++){
6+
b= n%10;
7+
f= f+ b*b*b;
8+
n=n/10;
9+
}
10+
if(a==f){
11+
System.out.println("No. is amstrong ");
12+
}
13+
else{
14+
System.out.println("No. is not amstrong ");
15+
}
16+
}
17+
}

core programs/Array_1.class

483 Bytes
Binary file not shown.

core programs/Array_1.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
public class Array_1 {
2+
public static void main(String[] args) {
3+
int []a={10,20,30,40,50};
4+
for(int i=0;i<a.length;i++){
5+
System.out.println(a[i]);
6+
}
7+
}
8+
}

core programs/Array_2.class

529 Bytes
Binary file not shown.

core programs/Array_2.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
public class Array_2 {
2+
public static void main(String[] args) {
3+
int a[] ={100,200,300,400,500};
4+
int b[] ={11,22,33,44,55};
5+
// b=a;
6+
a=b;
7+
for(int i=0 ; i<a.length;i++){
8+
System.out.println(a[i]);
9+
}
10+
// System.out.println(a);
11+
// System.out.println(b);
12+
}
13+
}

core programs/BreakStatment.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
public class BreakStatment {
2+
public static void main(String[] args) {
3+
int a;
4+
for (a=1; a<=3; a++){
5+
System.out.println("A");
6+
break;
7+
// System.out.println("B");
8+
// System.out.println("C");
9+
10+
}
11+
}
12+
}
13+
14+
// Error
15+
// Unreachable code

core programs/Bytes.class

387 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)