Skip to content

Commit f742b51

Browse files
committed
Initial commit
0 parents  commit f742b51

Some content is hidden

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

58 files changed

+834
-0
lines changed

.gitignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
### IntelliJ IDEA ###
2+
out/
3+
!**/src/main/**/out/
4+
!**/src/test/**/out/
5+
6+
### Eclipse ###
7+
.apt_generated
8+
.classpath
9+
.factorypath
10+
.project
11+
.settings
12+
.springBeans
13+
.sts4-cache
14+
bin/
15+
!**/src/main/**/bin/
16+
!**/src/test/**/bin/
17+
18+
### NetBeans ###
19+
/nbproject/private/
20+
/nbbuild/
21+
/dist/
22+
/nbdist/
23+
/.nb-gradle/
24+
25+
### VS Code ###
26+
.vscode/
27+
28+
### Mac OS ###
29+
.DS_Store

.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

JavaProgrammingTutorial.iml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
7+
</content>
8+
<orderEntry type="inheritedJdk" />
9+
<orderEntry type="sourceFolder" forTests="false" />
10+
</component>
11+
</module>

src/duna1.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
public class duna1 {
2+
private String name;
3+
private potpie1 birthday;
4+
5+
public duna1(String theName, potpie1 theDate){
6+
name = theName;
7+
birthday = theDate;
8+
}
9+
public String toString(){
10+
return String.format("My name is %s, my birthday is %s", name, birthday);
11+
//object to string is composition refering to obejcts as other members
12+
}
13+
}

src/e01Printing.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
public class e01Printing {
2+
//Printing !
3+
public static void main(String[] args) throws Exception {
4+
System.out.println("In Java, everything begins with a class. If you don't have a class, you can't do anything.");
5+
}
6+
}

src/e02Variables.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
public class e02Variables {
2+
//Variables !
3+
public static void main(String[] args) throws Exception {
4+
double tuna;
5+
// variable named "tuna"
6+
tuna = 5.28; // assigning a value on the variable
7+
System.out.print("I want ");
8+
System.out.print(tuna); //stay on the same line
9+
System.out.println(" movies"); //after this move to the next line
10+
System.out.println("apples");
11+
}
12+
}

src/e03Scanner.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import java.util.Scanner;
2+
3+
public class e03Scanner {
4+
//Getting user input !
5+
public static void main(String[] args) throws Exception {
6+
Scanner bucky = new Scanner(System.in);
7+
//scanning variable called bucky equal to information from the keyboard
8+
System.out.println(bucky.nextLine()); // pause and waits for the input
9+
}
10+
}

0 commit comments

Comments
 (0)