Total members 11893 |It is currently Tue Nov 05, 2024 3:50 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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 ...




Author:
Proficient
User avatar Posts: 280
Have thanks: 1 time

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;


_________________
Please recommend my post if you found it helpful


Author:
Proficient
User avatar Posts: 228
Have thanks: 0 time
Post new topic Reply to topic  [ 2 posts ] 

  Related Posts  to : make decision while importing packages
 packages in java     -  
 SSIS .dtsx packages and .net     -  
 decision tree     -  
 decision trees     -  
 java code for decision tree algorithm     -  
 make a banner     -  
 make button in flash     -  
 make Curves in photoshops     -  
 make notepad editor in c     -  
 Make A Website In Flash     -  









Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com