File tree Expand file tree Collapse file tree
naresh/src/main/java/com/lftechnology/phpjava
suresh/src/main/java/com/lftechnology/phpjava Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 /
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments