Skip to content

Commit ca999a5

Browse files
committed
convert string to long
1 parent 017801f commit ca999a5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

string-to-long.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class stringtolong
2+
{
3+
public static void main(String args[])
4+
{
5+
String s="9990449935";
6+
long l=Long.parseLong(s);
7+
System.out.println(l);
8+
}
9+
}

0 commit comments

Comments
 (0)