Skip to content

Commit b1d51bf

Browse files
author
jsquared21
committed
first commit
0 parents  commit b1d51bf

File tree

262 files changed

+4401
-0
lines changed

Some content is hidden

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

262 files changed

+4401
-0
lines changed
518 Bytes
Binary file not shown.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* (Display three messages) Write a program that displays Welcome to Java,
2+
Welcome to Computer Science, and Programming is fun.
3+
*/
4+
public class Exercise_01_01 {
5+
public static void main(String[] args) {
6+
System.out.println("Welcome to Java");
7+
System.out.println("Welcome to Computer Science");
8+
System.out.println("Programming is fun");
9+
}
10+
}
486 Bytes
Binary file not shown.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// (Display five messages) Write a program that displays Welcome to Java five times.
2+
public class Exercise_01_02 {
3+
public static void main(String[] args) {
4+
System.out.println("Welcome to Java.");
5+
System.out.println("Welcome to Java.");
6+
System.out.println("Welcome to Java.");
7+
System.out.println("Welcome to Java.");
8+
System.out.println("Welcome to Java.");
9+
}
10+
}
590 Bytes
Binary file not shown.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* (Display a pattern) Write a program that displays the following pattern:
2+
J A V V A
3+
J A A V V A A
4+
J J AAAAA V V AAAAA
5+
J J A A V A A
6+
*/
7+
public class Exercise_01_03 {
8+
public static void main(String[] args){
9+
System.out.println(" J A V V A");
10+
System.out.println(" J A A V V A A");
11+
System.out.println("J J AAAAA V V AAAAA");
12+
System.out.println(" J J A A V A A");
13+
}
14+
}
538 Bytes
Binary file not shown.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
(Print a table) Write a program that displays the following table:
3+
a a^2 a^3
4+
1 1 1
5+
2 4 8
6+
3 9 27
7+
4 16 64
8+
*/
9+
public class Exercise_01_04 {
10+
public static void main(String[] args) {
11+
System.out.println("a a^2 a^3");
12+
System.out.println("1 1 1");
13+
System.out.println("2 4 8");
14+
System.out.println("3 9 27");
15+
System.out.println("4 10 64");
16+
}
17+
}
578 Bytes
Binary file not shown.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
public class Exercise_01_05 {
2+
public static void main(String[] args) {
3+
System.out.println("9.5 X 4.5 - 2.5 X 3");
4+
System.out.println("-------------------");
5+
System.out.println(" 45.5 - 3.5");
6+
System.out.println(" =");
7+
System.out.println(((9.5 * 4.5) - (2.5 * 3)) / (45.5 - 3.5));
8+
}
9+
}

0 commit comments

Comments
 (0)