Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners Platform dependent values like line separator, path separator
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Deepak Kumar
Platform dependent values like line separator, path separator
1 Answer(s)      4 years ago
Posted in : Java Beginners


Hi,

How will you get the platform dependent values like line separator, path separator, etc., ?

Thanks


Advertisement
View Answers

October 5, 2010 at 4:51 PM


Hi Friend,

Using the following codes:
System.getProperty("line.separator") for line separator
System.getProperty("path.separator") for path separator

Thanks


Related Tutorials/Questions & Answers:
Platform dependent values like line separator, path separator - Java Beginners
Platform dependent values like line separator, path separator  Hi, How will you get the platform dependent values like line separator, path...: System.getProperty("line.separator") for line separator System.getProperty
Java plateform dependent values
Java plateform dependent values  How will you get the platform dependent values like line separator, path separator, etc., ?  we will get the the platform dependent values like line separator, path separator
Advertisements
JBoss Unix and Line Separator
JBoss Unix and Line Separator  Hi, I am trying to solve an critical... from the PrintWriter class from java api, this method uses the default line separator from O.S. \n on unix, but I am trying to change to \r\n. I change
Path Separator
Path Separator      ... by semicolon (;). When it is run, Ant checks for the path separator and directory separator characters provided by the underlying JVM and uses those values
Backup File With Separator
line and record separator. Understand with Example The Tutorial... 'abc' that indicates line and records separator... Backup File With Separator     
What is a file Separator?
What is a file Separator?  What is a file separator in Java Program?   Hi, The file separator is nothing but a character that we used to separate directory path names for a particular location. These file separator
Java file separator
Java file separator This section demonstrates you the use of file separator. A file separator is a character that is used to separate directory names that make up a path to a particular location. It is operating system dependent
Backup File With Separator
Backup File With Separator       Backup File With Separator in SQL  is used to indicate line and record separator. Understand with Example The Tutorial illustrate
Use of "|" separator for selecting more than one path
Use of  "|" separator for selecting more than one path... multiple expressions on an XML file with the use of XPath "|" separator...;one path with | separator   Object result 
File Separator
File Separator       This example allows you to build platform-specific paths and directory hierarchies. When you build a path with any of ant's task, Ant is quite happy
Java Construct File Path
dependent because the file separator character is system dependent. For example...; (separator character). But, we can construct a file path system independent due... the path name by the separator what the underlying system uses to separate
Passing Multi select list box values using ajax to get values to dependent list box
Passing Multi select list box values using ajax to get values to dependent list box  Hi, I have a jsp page which has 3 dependent list boxes... the dependent values to the immediate next list box. Please help me
Constructing a File Name path
. separatorChar. The value of this separator is system dependent.  If we are using Windows platform then the value of this separator is ... Constructing a File Name path   
Create Line Graph using database values
Create Line Graph using database values JFreeChart library has made.... It also provides a way to create a chart with the values that has been retrieved from the database. In this section, you will learn how to create a x-y line
How to show database values in Graph.(Like Cricket score board Graph)
How to show database values in Graph.(Like Cricket score board Graph)  Hi, Can Any one help out! How to show database values in Graph. i mean while changing values in database,the corresponding curve should change accordingly
Class path
Class path       The Classpath is an argument that is path through the command line. Classpath can... that are not Java extensions or part of the Java platform. The class path needs
JavaScript array join
would be separated by a separator.  Syntax of the join() is as given below: arrayObject.join( separator ) This separator is optional and comma(",") is the default separator for the join() method. In this example we
dependent radio button
dependent radio button  Hi. I have 4 radio buttons say all,chocolate,cookie,icecream. If I select all the other 3 should not able to be selected. If I select any 1 or 2 among chocolate,cookie,icecream , all should not able
NumberFormatter in Flex4
NumberFormatter in Flex4: The NumberFormatter class formats the decimal rounding and precision, thousand separator and negative sign. for example,203.4567... types of error values: Invalid value, Invalid format. The tag
Java IO Path
In the above file path the character ' \ ' is a directory separator also...Java IO Path In this section we will discuss about the Java IO Path. Storage... is called a Path of that file or folder using which they can be accessed easily
Dependent drop down list
Dependent drop down list  hi,i am trying to design a form on which 2 dependent drop down list is used my code is successful but when i select class from first drop down list all the data get lossed means the value entered
garbage collection implementation dependent java
garbage collection implementation dependent java  How a garbage collection works in Java
Want code for 5 dependent dropdown in php
Want code for 5 dependent dropdown in php  I have 5 dds, if i select value from first one then related values are displayed in 2 dd and so on .plz help   Please go through the following link: Visit Here The above link
platform independent
platform independent  what is difirence between machine independent and platform independent
JSP Dependent Drop Down Menu
JSP Dependent Drop Down Menu  Hey Guy/Gals! I need someone help to guide me in creating a drop down menu, where the first menu affects the second...; The given code will help you to create a dependent dropdown box. 1
jsp- database dependent dropdown list
jsp- database dependent dropdown list   i want 2 dropdown list 1- CLASS 2-SECTION both are should come from database. and if i select a class suppose class a the corresponding section dropdown list should retrieve the section
Constructing a File Name path in Java
Windows platform then the value of this separator is  ' \ ' . Lets see...;    In Java, it is possible to set dynamic path, which is helpful for mapping local  file name with the actual path of the file using
Java example to get the execution path
directory user.name user's account name path.separator path separator java.home... Java example to get the execution path       get execution path We can get the execution
Android Platform...
Android Platform...  I am willing to port a J2ME code on Android Platform.On eclipse, its giving some error issue,but actually those all are UI... Platform, On doing just certain changes
Java Swing dependent JList
Java Swing dependent JList In this section, you will learn how to create a dependent list using java swing In the given code, we have created three lists. In the first list we have displayed the  names of the databases present
Javeline Platform
Javeline Platform       Javaline is an open source Java & Javascript platform. Read full Description
Advertisements
 

 

 

DMCA.com