keerthika
Datatype convertion
1 Answer(s)      4 years ago
Posted in : Java Beginners

it possible to convert long datatype into string in java if possible means how

Advertisement
View Answers

May 24, 2011 at 11:09 AM


class ConvertLongToString 
{
    public static void main(String[] args) 
    {
        long l=123456;
        String st=Long.toString(l);
        System.out.println(st);
    }
}









Related Tutorials/Questions & Answers:
Datatype convertion
Datatype convertion  it possible to convert long datatype into string in java if possible means how
Advertisements
Boolean DataType
Boolean DataType  What is the Size of the Boolean datatype in Java
convertion before downloading
convertion before downloading  convert zip file which is in server to doc while before downloading
datatype - Java Beginners
datatype  how i convert char datatype in string format for ex.(convertion of int datatype) int variable_name=Integer.parseInt(br.readLine());  Hi Friend, Try the following code: import java.io.*; public class
Java Datatype
Java Datatype  What will be the output of following java program and why? class Datatype{ public static void main(String[] args.... Therefore it displays its corresponding integer value. class Datatype{ public
Java Datatype
Java Datatype  What will be the output of following java program and why? class Datatype{ public static void main(String[] args.... Therefore it displays its corresponding integer value. class Datatype{ public
Java Primitive Datatype
Java Primitive Datatype  what is the size of boolean datatype ? please explain in detail
convertion of string entered in the web interface
convertion of string entered in the web interface  hi i am entering some values in the textbox of web interface.how i can access that values and convert to particular type.in short how to link web interface values with my java
Writing a trigger for an userdefined datatype
Writing a trigger for an userdefined datatype  i have a user defined datatype in EMP table like COLUMNNAME:ADDRS_TYPE where ADDRS_TYPE have the following columns DATATYPE :ADDRESS VARCHAR2(136) V_CODE VARCHAR2(8) T_CODE
Java String Datatype
Java String Datatype  Weather String in java is class or Datatype,if it's clss then How can i assign String str="hello";   String is a class found in the package java.lang.*. When we represent string in double quotes
Mysql Alter Column Datatype
Mysql Alter Column Datatype       Mysql Alter Column Datatype is used to modify the table and change the datatype of field. Understand with Example The Tutorial illustrate
hex to binary convertion in java - Java Beginners
hex to binary convertion in java  HI, im doin a application wch requires to send a binary message to other mobiles, so i need to convert the hex values to binary format.So the binary format could either be a ringtone
hex to binary convertion in java - Java Beginners
hex to binary convertion in java  HI, im doin a application wch requires to send a binary message to other mobiles, so i need to convert the hex values to binary format.So the binary format could either be a ringtone
hex to binary convertion in java - Java Beginners
hex to binary convertion in java  HI, im doin a application wch requires to send a binary message to other mobiles, so i need to convert the hex values to binary format.So the binary format could either be a ringtone
Mysql Decimal Datatype
Mysql Decimal Datatype       Mysql Decimal Datatype is used to specify the numeric values. Understand with Example The Tutorial give you an example from 'Mysql Decimal Datatype
Mysql nchar Datatype
Mysql nchar Datatype       MySQL nchar define the datatype nchar that stores fixed-length character data. The data can be a string single-byte or multibyte letters, digits
how to use float datatype in mysql? - SQL
how to use float datatype in mysql?  how to use float datatype in mysql?  hi Chitra this code help u CREATE TABLE `paging` ( `Id` float(10,2) NOT NULL default '0.00', `name` varchar(255) default NULL
SQL Decimal
SQL Decimal       SQL Decimal is used to specify the values in decimal datatype. The Decimal datatype can be of two types : Decimal (p) refers to floating point and Decimal fixed
Java Methods
Java Methods       JavaScript type of Operator The JavaScript type of operator returns the datatype of an operand. You can see in the given example
Data Type: bool
Data Type: bool       This Example shows you how to use bool datatype in velocity. Methods... a boolean datatype variable. $bool: Display boolean datatype variable
Mysql Alter Data Type
datatype in a table. Understand with Example The Tutorial cover an example... 'userform' with required fieldname and datatype respectively.The table 'userform' has...; column datatype from "contact( bigint)" to contact(varchar(130). 
MySQL nchar
MySQL nchar       MySQL nchar define the datatype nchar that stores fixed-length character data. The data can be a string single-byte or multibyte letters, digits and symbols
Java - Arithmetic Operation, Conversion and Casts in java
Java - Arithmetic Operation, Conversion and Casts in java       This example illustrates that what is type casting? Type Casting  refers to changing an entity of one datatype
Mysql Table Describe
Mysql Table Describe       Mysql Table Describe is used to describe the Fieldtype, Datatype, Null and Key etc of the table. Understand with Example The Tutorial illustrate
Convert Text To PDF
Convert Text To PDF       Here we are discussing the convertion of a text file into a pdf file by using an example. In this example we take a string  from console, pass