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



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

Have Programming Question? Ask it here!
 
 
 


Deepak Kumar
Platform dependent values like line separator, path separator
1 Answer(s)      3 years and 11 months 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
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 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
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
Java file new line
separator and allow to write next text to another line in  the file. Here...Java file new line In this section, you will learn how to write the text in new line of text file. Description of code: The package java.io.* has provide
nio read file line by line
nio read file line by line  Is there any way to read file line by line using the Java nio package? How to use the nio classes to read file line by line? Thanks   Hi, The easiest way to read file line by line is to use
dependent drop down box - JSP-Servlet
dependent drop down box  haloo sir Please give me the solution how to extract data from dependent drop down box with page refresh, If possible please give some example for better understanding
Passing Command Line Arguments
pass values on command line argument . We are taking a sequence of character from command line at run time. Store these strings into an array... Passing Command Line Arguments     
classpath and path for structs1.3.8
classpath and path for structs1.3.8  How to set classpath and path... and dependent jar files of struts 1.3.8) to WEB-INF\lib folder.....there is no need of setting path
path classpath
path classpath  EXPLAIN PATH AND CLASSPATH ? DIFF send me ans plz..., Path is system wide variable that tells where to find your commands. Lets... be in path. While Classpath is Enviroment Variable that tells JVM or Java Tools where
Path was not found
Path was not found  The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path
Fileupload from source path to destination path
in the destination path like if the source file is .doc it will create a DOC folder...Fileupload from source path to destination path  first we will create... source path &Destination path fields and BOTH INPUT TYPES ARE "TEXT" we
Are JVM's platform independent?
Are JVM's platform independent?  Hi, Are JVM's platform independent?   Hi, Java Virtual MachineJVM)'s is not platform independent. JVM... Runtime Enviroment) . It provides the cross platform functionality to java
what are the components of java platform ?
what are the components of java platform ?  what are the components of java platform ? plz if any1 perfectly know help me to override my conflicts.plz explain briefly
What do you mean by platform independence?
What do you mean by platform independence?   Hi, What do you mean by platform independence? Thanks   Hi, The feature of Platform.... The programs written on one platform can run on any platform provided the platform
LIKE Operator
LIKE Operator       The LIKE operator is used for searching  a specified pattern in the column. In this example we will show you how to use the Like operator to get
portability vs platform independent
portability vs platform independent  sir, pls tell me 1.the differences between platform independent and portability related to java technology 2.how java provides security 3.how can i prove servlet is a single instance
Draw Line
Draw Line  sir i want to draw a moving line in j2me.That line should also show arrow in moving direction. How can we do so
line graph
line graph  I have developed an application and in that i have to compare 2 reports using line graph from the data taken from ms access database?please help
on line exam
on line exam  how we can upload the data on the server from any site
Break a Line for text layout
Break a Line for text layout   ... to break a line. To break down the text into lines, the class LineBreakMeasurer is used. The class Hashtable maps keys to values. A string is defined
Java Path Class
path, locate path and manipulate files. The Path is system dependent, i.e....Java Path Class In this section we will discuss all the aspect of Path class of Java. In Java, Path class is added from the SE 7 release. Java 7 has added
like operator
like operator  how to select exact value using like operator in php
Advertisements
 

 

 

DMCA.com