How do I input longs

I have my own class that extends Random that I made so I can save the seed and use it again later if something weird happens, but it doesn't let me paste the number in from console. Specifically the error I'm getting is java: integer number too large. The number is 3449410621531671124.
4 Replies
JavaBot
JavaBot10mo ago
This post has been reserved for your question.
Hey @blockgoblin31! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
tjoener
tjoener10mo ago
Add an L at the end In Java a number is an int or a double if there's a . in it If you need a long you suffix it with L, for a float you can add f at the end, for anything else, you cast
blockgoblin31
blockgoblin31OP10mo ago
ty, didnt know that was a thing for longs.
JavaBot
JavaBot10mo ago
Post Closed
This post has been closed by <@501514065068294154>.
Want results from more Discord servers?
Add your server