| Author |
i want to have a full address typed even when i press the space bar
|
Vishal Hegde
Ranch Hand
Joined: Aug 01, 2009
Posts: 984
|
|
class ExecuteAddressBook
{
public static void main(String args[])
{
try
{
AddressBook a=new AddressBook(new
Address(args[0],args[1],args[2]),new SocialSecurity(),new
CurrentStatus(),new Qualification());
{
String displayaddress=a.a.Address();
System.out.println(displayaddress);
}
{
}
}
catch(Exception e)
{
System.out.println("Compiler is very upset with you with not
providing full address details..");
}
}
}
i want args[0] have shanti niketan near juhu talav pani but as soon as i write shanti and press space bar "niketan" is enterd in ars[2] anyone who can help me how to handle this
|
http://www.lifesbizzare.blogspot.com || OCJP:81%
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19232
|
|
1) use code tags
2) On your command line, use quotes around the argument:The operating system will now treat it as one single argument that does not have any quotes around it.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Vishal Hegde
Ranch Hand
Joined: Aug 01, 2009
Posts: 984
|
|
|
thanks rob prime how stupid of me
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19232
|
|
|
I wouldn't call it stupid; more just not knowing all of the ins and outs of your shell (cmd.exe, bash, ksh, etc).
|
 |
Vishal Hegde
Ranch Hand
Joined: Aug 01, 2009
Posts: 984
|
|
|
what is bash and ksh never heard it before
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19232
|
|
|
Shells for Linux and Unix; don't mind them. They are basically the same as cmd.exe.
|
 |
 |
|
|
subject: i want to have a full address typed even when i press the space bar
|
|
|