bcz u r comparing two arrays addresses ,that is why it is giving false.
and second one it is printng the address of Array a.
Type: Posts; User: veens
bcz u r comparing two arrays addresses ,that is why it is giving false.
and second one it is printng the address of Array a.
if we use instance variable(without initialization or assigning any value) compiler won't give any error,but in case of local variable compiler gives error,
i know that instance variables...
some times == can't work(like string objects) that's why i wanted to know any other way...
Your program has some error i.e
nextInt() is not a static method.we cant call it directly with class name .
Try It.
Random r=new Random();
Vector<String> v = new Vector<String>(10, 5);...
it is correct output only
Hi,
Is there any other way to check null in string,without using == operator
You are using a wrong package beans;use java.sql.*;
remove import java.beans.Sta.... line.
it will works