Skip to content

Commit 058a65c

Browse files
author
bhuwang
committed
Merge branch 'dev' of git@github.com:bhuwang/phpjava.git into dev
2 parents 21305ed + bac0589 commit 058a65c

7 files changed

Lines changed: 106 additions & 1 deletion

File tree

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
*.class
22

3+
# IntelliJ IDEA coniguration folder
4+
.idea/*
5+
6+
# module file created by IntelliJ IDEA
7+
*.iml
8+
39
# Mobile Tools for Java (J2ME)
410
.mtj.tmp/
511

@@ -13,4 +19,5 @@ hs_err_pid*
1319
.project
1420
**/.settings/*
1521
*.classpath
16-
**/target/**
22+
**/target/**
23+
/bin/
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.lftechnology.phpjava.one;
2+
3+
import com.lftechnology.phpjava.two.Printer;
4+
5+
/**
6+
* Sample Hello World application
7+
*
8+
* @author Naresh Maharjan <nareshmaharjan@lftechnology.com>
9+
*/
10+
public class Hello {
11+
public static void main(String args[]) {
12+
Printer.printIt("naresh");
13+
}
14+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.lftechnology.phpjava.two;
2+
3+
/**
4+
* @author Naresh Maharjan <nareshmaharjan@lftechnology.com>
5+
*/
6+
public class Printer {
7+
8+
public static void printIt(String str) {
9+
System.out.println(str);
10+
}
11+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package com.lftechnology.phpjava.two;
2+
3+
/**
4+
* @author Naresh Maharjan <nareshmaharjan@lftechnology.com>
5+
*/
6+
class Yelo {
7+
public static void printIt(String var) {
8+
System.out.println(var);
9+
}
10+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.lftechnology.phpjava;
2+
3+
import com.lftechnology.phpjava.one.Boy;
4+
//import com.lftechnology.phpjava.one.Girl;
5+
6+
/**
7+
*
8+
* @author Suresh Shrestha <sureshshrestha@lftechonology.com>
9+
*
10+
*/
11+
public class Accessor {
12+
13+
public static void main(String[] args) {
14+
// TODO Auto-generated method stub
15+
System.out.println("Accessor main method.");
16+
String oneObj = Boy.getBoy();
17+
Boy BoyObj = new Boy();
18+
BoyObj.getGender();
19+
20+
}
21+
22+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package com.lftechnology.phpjava.one;
2+
3+
/**
4+
*
5+
* @author Suresh Shrestha <sureshshrestha@lftechonology.com>
6+
*
7+
*/
8+
public class Boy {
9+
10+
public static String getBoy() {
11+
// TODO Auto-generated method stub
12+
System.out.println("Hello, I am a boy.");
13+
return "hello Boy";
14+
}
15+
16+
public void getGender() {
17+
System.out.println("Male");
18+
return;
19+
}
20+
21+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package com.lftechnology.phpjava.one;
2+
3+
/**
4+
*
5+
* @author Suresh Shrestha <sureshshrestha@lftechonology.com>
6+
*
7+
*/
8+
class Girl {
9+
10+
public static void getGirl(String[] args) {
11+
// TODO Auto-generated method stub
12+
System.out.println("Hello, I am a girl.");
13+
14+
}
15+
16+
private static void getHair(String[] args) {
17+
System.out.println("Hair is long.");
18+
}
19+
20+
}

0 commit comments

Comments
 (0)