Java import package tutorial in Linux

Published: 17 June 2019
on channel: Leave Knowledge
2,508
25

Java import package tutorial in Linux

Class.java-)
package hi.hello;
class a{
public void sum(int a,int b){
System.out.println(a+b);
}
}
(-Class.java

Package.java-)
package hi.hello;
import hi.hello.a;
public class Package{
public static void main(String[] args){
a b=new a();
b.sum(5,5);
}
}
(-Package.java

terminal-) javac -d . *.java
terminal-) java -cp . hi.hello.Package
=10


On this page of the site you can watch the video online Java import package tutorial in Linux with a duration of hours minute second in good quality, which was uploaded by the user Leave Knowledge 17 June 2019, share the link with friends and acquaintances, this video has already been watched 2,508 times on youtube and it was liked by 25 viewers. Enjoy your viewing!