Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to import a self written class in java

// State this in the class that you have created...
package assignment1; 
public class myClass
{
  ...
    
public Complex()
{return....}
  
  ...
}


//Import this class then in another class/java file that you have written
import assignment1.myClass; 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #import #written #class #java
ADD COMMENT
Topic
Name
2+2 =