Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8170829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:15:42+00:00 2026-06-06T21:15:42+00:00

I am using the following: int i = Integer.parseInt(args[2]); Are there any other ways

  • 0

I am using the following:

int i = Integer.parseInt(args[2]);

Are there any other ways to get an integer from a string? If the number is really small as it is then doe the Byte and Char objects provide something similar?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T21:15:44+00:00Added an answer on June 6, 2026 at 9:15 pm

    Yes. There’s:

    Byte.parseByte(s); -- parses a Byte from a String
    Short.parseShort(s); -- parses a Short from a String
    

    And for larger numbers there’s:

    Long.parseLong(s);
    -- Float is an imprecise representation of a floating point number using 32 bits
    Float.parseFloat(s);
    -- Double is an imprecise representation of a floating point number using 64 bits
    Double.parseDouble(s);
    -- BigIntegers is an integer of arbitrary size as is accurate
    new BigInteger(s);
    -- BigDecimal is a floating point number of arbitrary size as is accurate
    new BigDecimal(s);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've have already implemented pagination using the following code: public Paginacao<Anuncio> consultarPaginado(int pagina, Integer
I am using following code. mDbHelper.open(); String[] areasList = new String[51]; for (int i
I'm getting some very strange behaviour using the following switch statement: string recognise_mti(int mti_code)
I am using the following approach to convert any primitive data type to string
I found a very interesting question. When I'm using following code: int main() {
I'm using following code to send sms throuh gsm modem for (int i =
I am trying to copy a file using the following code: 1: int data=0;
Using the following code to write to a file int main(int argc, char *
I am using the following query in an ssrs report. Declare @Year int =
How do I implement the following relationship using JPA? table person ( id int,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.