File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes i  want to have a full address typed even when i press the space bar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "i  want to have a full address typed even when i press the space bar" Watch "i  want to have a full address typed even when i press the space bar" New topic
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: 1050

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: 19544
    
  16

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 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1050

thanks rob prime how stupid of me
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19544
    
  16

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: 1050

what is bash and ksh never heard it before
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19544
    
  16

Shells for Linux and Unix; don't mind them. They are basically the same as cmd.exe.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: i want to have a full address typed even when i press the space bar
 
Similar Threads
someone pleasssseeee help !!!
from where should i import com.sun.xml.tree.XmlDocumentBuilder;
Address Book Java Issues
nullpointerexception when trying to set object field?
Need help with Java, cannot find symbol class?