Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

make decision while importing packages

Fri Oct 24, 2008 12:26 pm

I am facing a problem , i want to make decision while
importing the packages ... i.e. i want if package A is not found then import
package B ...

I know C/C++, and in these languages it can done very easily ... i.e. we can
make decision while including header file ... whether we want to include A
header file or B header file ...

I need your urgent response ... please give me the solution of this problem
or guide me how to come out of this problem ...



Re: make decision while importing packages

Fri Oct 24, 2008 12:28 pm

Easy. Let's assume class A is in the package com.someco.project, and
class B is there, too. Then, you can import either one or both:

u can import both classes and not the
whole package.
ie.:
Code:
import com.someco.project.A;
import com.someco.project.B;


Post a reply
  Related Posts  to : make decision while importing packages
 packages in java     -  
 SSIS .dtsx packages and .net     -  
 decision trees     -  
 decision tree     -  
 java code for decision tree algorithm     -  
 make a banner     -  
 make Noise on Image     -  
 how to make ArrayList ThreadSafe     -  
 make button in flash     -  
 make Curves in photoshops     -