parseLong() Method in java
Java Programming Language / Number Class in java
3852Program:
public class ParseLong { public static void main(String args[]) { long x =Long.parseLong("298798"); System.out.println(x); } } /* This method is used to get the primitive data type of a certain String. parseLong(String s) - This returns an long (decimal only). s - This is a string representation of decimal. */
Output:
298798 Press any key to continue . . .
This Particular section is dedicated to Programs only. If you want learn more about Java Programming Language. Then you can visit below links to get more depth on this subject.
# C Tutorials
# JAVA Tutorials
# HTML Tutorials
# Computer Fundamental
# Data Structure
# DBMS Tutorials
SQL
# C# Language
# R Language
# PHP
# Python
# Vue JS