aman rathi 3 Junior Poster in Training

I am getting this error while installing ADT plugin in eclipse:

Cannot complete the install because of a conflicting dependency.
  Software being installed: Android DDMS 21.0.0.v201210310015-519525 (com.android.ide.eclipse.ddms.feature.group 21.0.0.v201210310015-519525)
  Software currently installed: Eclipse IDE for Java EE Developers 1.3.0.20100617-0521 (epp.package.jee 1.3.0.20100617-0521)
  Only one of the following can be installed at once: 
    Eclipse UI 3.6.1.M20100826-1330 (org.eclipse.ui 3.6.1.M20100826-1330)
    Eclipse UI 3.6.2.M20110203-1100 (org.eclipse.ui 3.6.2.M20110203-1100)
    Eclipse UI 3.6.0.I20100603-1100 (org.eclipse.ui 3.6.0.I20100603-1100)
  Cannot satisfy dependency:
    From: Android DDMS 21.0.0.v201210310015-519525 (com.android.ide.eclipse.ddms.feature.group 21.0.0.v201210310015-519525)
    To: org.eclipse.ui 3.6.2
  Cannot satisfy dependency:
    From: Eclipse IDE for Java EE Developers 1.3.0.20100617-0521 (epp.package.jee 1.3.0.20100617-0521)
    To: org.eclipse.epp.package.jee.feature.feature.group [1.3.0.20100617-0521]
  Cannot satisfy dependency:
    From: Java EE IDE Feature 1.3.0.20100617-0521 (org.eclipse.epp.package.jee.feature.feature.group 1.3.0.20100617-0521)
    To: org.eclipse.platform.feature.group [3.6.0.v20100602-9gF78GpqFt6trOGhL60z0oEx3fz-JKNwxPY]
  Cannot satisfy dependency:
    From: Eclipse Platform 3.6.0.v20100602-9gF78GpqFt6trOGhL60z0oEx3fz-JKNwxPY (org.eclipse.platform.feature.group 3.6.0.v20100602-9gF78GpqFt6trOGhL60z0oEx3fz-JKNwxPY)
    To: org.eclipse.rcp.feature.group [3.6.0.v20100519-9OArFKvFtsd7WLUKh-DcYTS]
  Cannot satisfy dependency:
    From: Eclipse RCP 3.6.0.v20100519-9OArFKvFtsd7WLUKh-DcYTS (org.eclipse.rcp.feature.group 3.6.0.v20100519-9OArFKvFtsd7WLUKh-DcYTS)
    To: org.eclipse.ui [3.6.0.I20100603-1100]
aman rathi 3 Junior Poster in Training

hello everybody

first of all thanks to Daniweb and all its users for helping me lot of time.
now come to the problem
I've just started studying servlets 1 week back it was going well but i got one problrm when i try to run a packaged servlet code.

path to servlet (invoker servlet) class

D:\apache-tomcat-6.0.35\webapps\helloprogram\WEB-INF\classes\coreservlets\HelloServlet2.java

package coreservlets;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class HelloServlet2 extends HttpServlet {
  public void doGet(HttpServletRequest request,HttpServletResponse response)throws ServletException, IOException 
  {
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    
    String docType ="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 "+"Transitional//EN\">\n";
    
    out.println(docType +
                "<HTML>\n" +
                "<HEAD><TITLE>Hello (2)</TITLE></HEAD>\n" +
                "<BODY BGCOLOR=\"#FDF5E6\">\n" +
                "<H1>Hello (2)</H1>\n" +
                "</BODY></HTML>");
  }
}

URL which i entered to run this in browser

http://localhost:8080/helloprogram/servlet/coreservlets.HelloServlet2

the above code is working finely when i run this without package by putting .class file in classes folder of above.

i also set my classpath in environtment var

CLASSPATH=D:\apache-tomcat-6.0.35\webapps\helloprogram\WEB-INF\classes\coreservlets

please help me and ask me if any more information required to solve my problem.
Thanks once again to all daniweb family

aman rathi 3 Junior Poster in Training

thanks to all of you for valuable suggestion finally i got it.

aman rathi 3 Junior Poster in Training

guys i bought a new notebook HP probook 4430s which is loaded with free DOS.
but now i want to install win XP on my notebook which is not going in right way.
i inserted XP SP2 bootable CD in my notebook after loading all files instead of showing format option my lappi shows blue screen showing the following message:

A problem has been detected and windos has been Shut Down to prevent your comp......

Check for viruses on you computer. remove any newly installed hard drive or hard drive controllers. check your hard drive to make sure it is properly configured and terminated.

run CHKDSK /F to check for hard drive corruption, and than restart your computer.

Technical information:
*** STOP:0x0000007B (0xF78D2524, 0xC0000034, 0x00000000. 0x00000000)


when i run CHKDSK in dos it shows:
FAT32 not currently supported.

plzzz help me this is my first ever lappi n im scared.
is it hard drive problem??
but when i worked on free dos it was perfectly fine i can made directories and perform all basic function.

aman rathi 3 Junior Poster in Training

any other suggestions most welcome.

aman rathi 3 Junior Poster in Training

doing it by using if-else is better. idea of putting code in separate function is awesome. thanks to all for showing interest.

aman rathi 3 Junior Poster in Training

below is one class of my program i got one error in thid

duplicate case label at line 107
case 3:

code:

import java.util.*;

class current extends customer{
private double fd_amount[]=new double[2];
public byte fixdep_status=0;
private int fd_num[]=new int[2];
private int fd_time[]=new int[2];
static byte current_c=-1;
Scanner obj=new Scanner(System.in);

current(String name,byte type)
{
super(name,type);
}

void deposit(double rs)
{
gateway(2,rs);
}

void withd(double rs)
{
gateway(3,rs);
}

void details()
{
gateway(4,0);
}


void newfd(int month,double rs)
{
fd_amount[fixdep_status]=rs;
fd_num[fixdep_status]=++customer.fd;
fd_time[fixdep_status]=month;
fixdep_status++;

}

void fd_details()
{
for(int i=0;i<fixdep_status;i++)
{System.out.println("\n\n============================");
System.out.println("DETAILS OF F.D"+(i+1));
System.out.println("AMOUNT : "+fd_amount[i]);
System.out.println("TIME PERIOD : "+fd_time[i]);
System.out.println("F.D NUMBER : "+fd_num[i]);
}
}

void breakfd(byte choice)
{
double interest;
byte ch;
if(choice==3)
{
if(fixdep_status==1)
{
System.out.println("\n\nAMOUNT : "+fd_amount[fixdep_status-1]);
System.out.println("TIME PERIOD : "+fd_time[fixdep_status-1]);
System.out.println("F.D NUMBER : "+fd_num[fixdep_status-1]);
if(fd_time[fixdep_status-1]==6)
interest=(fd_amount[fixdep_status-1]*fd_time[fixdep_status-1]*5)/(100*12);
else
interest=(fd_amount[fixdep_status-1]*fd_time[fixdep_status-1]*10)/(100*12);
System.out.println("INTEREST GIVEN :"+interest);
System.out.println("______________________\nTOTAL AMOUNT DISPATCH : "+(fd_amount[fixdep_status-1]+interest));
fixdep_status--;
fd_amount[fixdep_status]=0;
fd_time[fixdep_status]=0;
fd_num[fixdep_status]=0;
}
if(fixdep_status==2)
{
System.out.println("YOUR FIX DEPOSITE DETAILS");
fd_details();
System.out.println("\n\n1 - TO BREAK F.D 1 (ABOVE)");
System.out.println("2 - TO BREAK F.D 2 (BELOW)");
System.out.println("3 - TO BREAK BOTH");
ch=obj.nextByte();


					switch(ch)
					{
					case 3:
					case 1:
					System.out.println("\n\nAMOUNT : "+fd_amount[fixdep_status-2]);
					System.out.println("TIME PERIOD : "+fd_time[fixdep_status-2]);
					System.out.println("F.D NUMBER : "+fd_num[fixdep_status-2]);
					if(fd_time[fixdep_status-2]==6)
					interest=(fd_amount[fixdep_status-2]*fd_time[fixdep_status-2]*5)/(100*12);
					else
					interest=(fd_amount[fixdep_status-2]*fd_time[fixdep_status-2]*10)/(100*12);
					System.out.println("INTEREST GIVEN :"+interest);
					System.out.println("______________________\nTOTAL AMOUNT DISPATCH : "+(fd_amount[fixdep_status-2]+interest));
					
					fd_amount[fixdep_status-2]=fd_amount[fixdep_status-1];
					fd_time[fixdep_status-2]=fd_time[fixdep_status-1];
					fd_num[fixdep_status-2]=fd_num[fixdep_status-1];
					fd_amount[fixdep_status-1]=0;
					fd_time[fixdep_status-1]=0;
					fd_num[fixdep_status-1]=0;
					fixdep_status--;
					break;
					
					case 3:
					case 2:
					System.out.println("AMOUNT : "+fd_amount[fixdep_status-1]);
					System.out.println("TIME PERIOD : "+fd_time[fixdep_status-1]);
					System.out.println("F.D NUMBER : "+fd_num[fixdep_status-1]);
					if(fd_time[fixdep_status-1]==6)
					interest=(fd_amount[fixdep_status-1]*fd_time[fixdep_status-1]*5)/(100*12);
					else
					interest=(fd_amount[fixdep_status-1]*fd_time[fixdep_status-1]*10)/(100*12);
					System.out.println("INTEREST GIVEN :"+interest);
					System.out.println("______________________\nTOTAL AMOUNT DISPATCH : "+(fd_amount[fixdep_status-1]+interest));
					fd_amount[fixdep_status-1]=0;
					fd_time[fixdep_status-1]=0;
					fd_num[fixdep_status-1]=0;
					fixdep_status--;
					}//end of switch
               }}}


}//end of class

i want …

aman rathi 3 Junior Poster in Training

thanks i got it

aman rathi 3 Junior Poster in Training

it is possible to that by writing the same statements twice under case 3 and 5 separately but that's not what i want.

aman rathi 3 Junior Poster in Training

In my program i want to execute same statement on case 3 and 5 in switch() i searched lot on google about this but get nothing please help me

case 3,5:

I know it is wrong but if you have any idea about this than please help me.

aman rathi 3 Junior Poster in Training

Is there any method in java to generate random number (integer, byte or float).
please tell me if any i need it in my program.

if possible please give full example.

thanks.

aman rathi 3 Junior Poster in Training

thanks
:-)

aman rathi 3 Junior Poster in Training

The below code is showing error i checked lots of time didn't find any error please help me.

class emp{
int id,sal;
String name;

emp(int id,int sal,String name)
{
this.id=id;
this.sal=sal;
this.name=name;
}

void show()
{
System.out.println("Name: "+name);
System.out.println("Salary: "+sal);
System.out.println("ID: "+id);
}
}


class manager extends emp{
int bonus;

manager(int id,int sal,String name,int bonus)
{
this.id=id;
this.sal=sal;
this.name=name;
this.bonus=bonus;
}

}


class inherit{
public static void main(String arg[])
{
emp e1=new emp(1000,58000,"rohit");
manager m1=new manager(1001,98000,"Aman",5000);
e1.show();
m1.show();
}
}

following is error

inherit.java:26: cannot find symbol
symbol : constructor emp()
location: class emp
{
^
1 error

aman rathi 3 Junior Poster in Training

ok i got it.
thanks once again.

aman rathi 3 Junior Poster in Training

Its perfectly working.
but what you did here is the same i did in my code the only difference is that i did it in separate class.
in your 1st post you said

In your sw method just you are swapping the reference. Not the original values.

i just want to know that whats the difference what you did in last post and in my first post.
according to your logic it should also be by reference

aman rathi 3 Junior Poster in Training

if two compared string are initialized at the time of declaration and than compared it will work finely

String a="xyz";
String b="xyz";
if(a==b)
{
//executed
}

in this case String b will not take separate memory instead it will refer to same memory location referring by String a. if you will initialize any one of them at run time than it will never effect other one instead it will take separate space.

aman rathi 3 Junior Poster in Training

thank you sir i got your point.
one more question
is there any way to swap value of two objects without referring to their instance fields by using only objects. is there any more method to do this??

aman rathi 3 Junior Poster in Training

if (name1 == "good")

replace by this

if(name1.equals("good"))
{
}

likewise all if conditions.

aman rathi 3 Junior Poster in Training

Hello everyone
first of all thanks to daniweb and all users to help me lots of time.
now come to problem i am learning java from last one month today i wrote a program to swap two objects it is running but not performing desired task.
all instance fields are same after swaping as were earlier.

class emp{
int i,j;

emp(int i,int j)
{
this.i=i;
this.j=j;
}

void showdata()
{
System.out.println(i+"\n"+j);
}

static void sw(emp a, emp b)
{
emp temp;
temp=a;
a=b;
b=temp;
}
}



class swap{
public static void main(String arg[])
{
emp e1=new emp(10,10);
emp e2=new emp(20,20);

e1.showdata();
e2.showdata();

emp.sw(e1,e2);

e1.showdata();
e2.showdata();

}
}

please tell me wheres the problem.

aman rathi 3 Junior Poster in Training

can you please give me one example.

aman rathi 3 Junior Poster in Training

hello i am beginner to java i wrote a simple program of object array but it is showing run time error

Exception in thread "main" java.lang.NullPointerException
at classarr.main(classarr.java:14)

class abc{
int i;
}



class classarr{

public static void main(String arg[])
{
abc a[]=new abc[4];
int j;
for(j=0;j<=3;j++)
a[j].i=j+1;


for(j=0;j<=3;j++)
System.out.print(a[j].i);
}
}

please help me

aman rathi 3 Junior Poster in Training

I was just trying to write in format like newspapers.

aman rathi 3 Junior Poster in Training

hey guys first of all thanks to everyone for helping me lot of time.

now come to the problem.
I am beginner to HTML. In book i read about the tag MULTICOL but it is not working on Mozilla browser and also on IE.
please can anyone tell me what to do or any alternative tag.

please help me.

<multicol cols=2 gutter=35> all matter......... </multicol>
aman rathi 3 Junior Poster in Training

thanks a lot all of you.
special thanks to sam.

aman rathi 3 Junior Poster in Training

hello every one first of all thanks to daniweb and all its members who alwasy helped me lot.

i am very beginner to html and started just 3 or 4 days ago and facing lots of problems
i am doing html by using internet explorer latest(8) and also on mozilla.

problem 1: i use <img src=""> to insert a image in page its finely working in internet explorer but not in mozilla below the coding.

<html>
<head>
<title>my name is Aman</title>
<img src="C:\Documents and Settings\aman rathi\Desktop\New Folder\anna.JPG">

problem 2: while coding if i close the notepad (where i am coding) and next time when i opened its source it shows read only file i can't edit that, for editing source i do all steps again which i did in begging for saving page.

please also suggest me any platform where i can practice easily.
help me

aman rathi 3 Junior Poster in Training

got it thanks a lot.

aman rathi 3 Junior Poster in Training

i am very beginner to java getting error in below code

class forloop{
public static void main(string args[]){
int x;

for(x=0;x<10;x=x+1)
system.out.println("this is x:"+x);
}
}

error : cannot read :forloop.java
i error

please help me

aman rathi 3 Junior Poster in Training

first of all thanks to all for helping me from last 2 years.
now a days i am learning Visual basic, i have one book that is for beginner.
while studying that book i feel it is insufficient for me.
so please can any one tell me a book which can be used as a complete reference.
i mean a book which covers each n every topic deeply.
also please tell me if it is available in E-book.

AndreRet commented: It was a pleasure.:) +6
aman rathi 3 Junior Poster in Training

hi can any one tell me how to export and import a table in oracle 9i?
please be brief.

aman rathi 3 Junior Poster in Training

thanks to all
i did lot for internet earning in last 2 months but result is not good.
i also want tell u that i am a student and doing graduation in computer apps.
so i can give only 2 hrs per day so please suggest me suitable work.

Emini S&P trading is one of the best ways to make money online by emini trading.

is it like forex trading or something else.
please help me.

aman rathi 3 Junior Poster in Training

hello
i am using oracle 9i enterprise edition i want to open isql plus in my browser please tell me how to do it.
i am very beginner to oracle.
please help me.

aman rathi 3 Junior Poster in Training

i am using turbo c++ and i wrote another program where i define an integer
int size=5,arr;
but my compiler shows an error: on arr (constant value required).
now talking about your above program as far as my concern your logic seems correct

b[i]=b[i-1]+b[i-2];

but i think there is error in syntax.
if you want i can re write your program by changing little syntax.
can you tell is this program compiled successfully on your compiler.

aman rathi 3 Junior Poster in Training

thanks sir for helping me but i am still in hot water.
please add something more or explain how to use these commands.
when i wrote these commands in sql plus it shows unknown commands.
i am very beginner to oracle.i need brief description in easy language.
please help me.

aman rathi 3 Junior Poster in Training

hi i am using oracle 9i and now a days i am learning sql.
due to some problems i have to change my system and i will install oracle 9i in my new system, but problem is that after installing i need all that old tables that i have created in past 3 weeks in my old system.
please can anybody tell me after creating any table with sql plus where it is saved.
so that i successfully transfer that tables (or queries) in my new system.
if it is not possible please suggest me any idea from your self only.
please help me i am totally in trouble.

aman rathi 3 Junior Poster in Training

thanks all of you for helping me 1 more ques:
i am using complete refrence by herbert schildt if i use codelite then do i need any another specific book for this only.
is there header files, functions or syntax is different in turbo c++ and codelite.

please tell me what's the difference between among.

aman rathi 3 Junior Poster in Training

hello everyone
i am a student of computer app.
from last 4 months i was using turbo c++. but by the advice of some people yesterday i installed codelite.
i wrote a simple c++ program but i am not receiving any output i pressed ctrl+f9 as in turbo c++ but its not working i have lot of work to do as my home work but i m in troble because of this prolblem.
please help me other wise i have to go with turbo c++ that i don't want, please give me your valuable suggestions.

same program is running succesfully on turbo c++.

aman rathi 3 Junior Poster in Training

thanks for showing ur interest
but i m still in problem in my system at location
"F:\oracle\ora90\sqlplus\demo"
there are two text files named demobld and demodrop. are u talking about these, if yes then please tell me what exactly to do.
otherwise please tell me the exact location, my directory structure u can can analyze easily by using above mentioned.
please help me.
thanks once again.

aman rathi 3 Junior Poster in Training

thanks for your replies

CodeLite IDE is better than that(for me).

i downloaded it n install in my system as you know that i am new with it.
i wrote source codes but i don't know how to compile that n from where do i get output file.

aman rathi 3 Junior Poster in Training

hello everybody
hi im a student of SGRRITS (my institute) in my inst we have turbo c++.
is it a good platform for doing programming now a days and does any industry us it now a days.
no.2: please can you suggest me its substitute which are better than it.
no.3: which is the latest technology for this.
also tell me which is the last c++ compiler launched by borland international.

aman rathi 3 Junior Poster in Training

hi now a days im doig sql n im using oracle 9i for this.
now a days my instructor teaching me about select command but im not able to use it on oracle 9i because i didn't create anything, so please can any body tell me that am i going in right way.
are there some tables present in oracle 9i by default for practice.
if not can any body tell me how i create directly just for practice select statement because i will learn create command later.
please help me.

aman rathi 3 Junior Poster in Training

hello everyone,
in this sem in our coll we have sql in syllabus that's why i decided to learn oracle......

i have oracle 9i as well as oracle 10g express edition.
i want to know that which is better among them and have some more features.
which one is good for a beginner???
please help me

aman rathi 3 Junior Poster in Training

please suggest me which project i do? for bca final year

sorry you should chose your project self.
if you will face any problem in your project then ask here we will help you.

aman rathi 3 Junior Poster in Training

hi everybody i get my internet connection just before one month ago...and i am searching for online money making methods.....i searched lot but unfortunately just wasted.

i haven't any money to invest before starting anything...so please can anybody tell me
is there any method by which i can earn money online without investing.

please help me.

aman rathi 3 Junior Poster in Training

i m using windows xp service pack 2
is it good one or i change it??

aman rathi 3 Junior Poster in Training

thank you very much...
please can you give me the direct links to download the DBMS you mentioned above...

aman rathi 3 Junior Poster in Training

thanks
one question more...
please give me the brief details of different oracle softwares and their availability.
In our institute we have oracle 8i...is it a good one or i prefer to other.

please also mention their launching dates.

aman rathi 3 Junior Poster in Training

thanks
one question more...
please give me the brief details of different oracle softwares and their availability.
In our institute we have oracle 8i...is it a good one or i prefer to other.

please also mention their launching dates.

aman rathi 3 Junior Poster in Training

hello every one
I am a student of CS and in this semester i have a subject DBMS, i haven't do any programming with sql till now, i am completely new to it, here i want to know that about different DBMS software. in our coll we have oracle 8i, is there any other DBMS in market better than it. so please list all DBMS softwares and their features.
and lastly if we compare oracle 8i and oracle 9i which is better and also suggest me any of system for my studies.
from where i can get these these software?

also mention any tips from your experience that will help me plzz rply now..

aman rathi 3 Junior Poster in Training
#include<iostream.h>
#include<conio.h>

void main()
{
int arr[20],temp,cnt,cnt2,small,num;
clrscr();
cout<<"how many elements you want to insert for sorting:";
cin>>num;
cout<<"\nenter elements:";
for(cnt=0;cnt<num;cnt++)
cin>>arr[cnt];
for(cnt=0;cnt<num-1;cnt++)
{
small=cnt;
for(cnt2=cnt+1;cnt2<num;cnt2++)
{
if(arr[small]>arr[cnt2])
small=cnt2;
}
if(small!=cnt)
{
temp=arr[small];
arr[small]=arr[cnt];
arr[cnt]=temp;
}
}


cout<<"\nsorted elements";
for(cnt=0;cnt<num;cnt++)
cout<<"   " <<arr[cnt];
cout<<"\n\nsmallest number is:"<<arr[0];
cout<<"\nbiggest number is:"<<arr[--cnt];
getch();
}

By using this code you can find biggest and smallest number also you can sort a whole list of numbers in ascending order. Here in this program i used selection sort method you read more methods of sorting in your book good luck.

aman rathi 3 Junior Poster in Training

This [] type of symbol is used in arrays and using it twice ([][]) called two dimensional arrays and using thrice ([][][]) called three dimensional array.
by using arrays one can save his unnecessary efforts by declaring extra variables.....
for eg: you can add 10 numbers by declaring 10 different variables
(just an eg: for a very beginner)
(int v1,v2,v3.....,v9,v10) but it will takes your lots of time and extra effort you can also do it by using a simple and reliable declaration int v[10]. This declaration means now you can store 10 integers in memory. you can use loops for easy initialization for eg:

for(i=0;i<=9;i++)
scanf("%d",&v[i]);

now again look up at your problem....

char a[10][10]= {....}

this means you declare a two dimensional array having 10 columns and 10 rows which will be assign at run time (may possible at compile time)

= {....}

you can initialize any array at compile time as well as run time depends on your program.
i hope you understand this topic little bit by reading this......
for more details you must go though deep study of books and spend time on your system.