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 8808323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:35:38+00:00 2026-06-14T02:35:38+00:00

I am doing some homework for my first programming class, yay! :) However, one

  • 0

I am doing some homework for my first programming class, yay! 🙂

However, one of the programs I need to do, sorts any set of characters that a user inputs. It can be any character (& or $ or 5 or F).

So far I have done this with only letters:

if (a.compareTo(b)<=0 && a.compareTo(c)<=0)

or for numbers:

if (a<=b && a<=c)

But does java apply a numerical value to all the characters, or how does java sort characters like $ and @?

(I have found similar questions, but they were all in C++, I’m too much of a newbie to understand the similarities, I tried though)

Thanks for the help.

  • 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-14T02:35:39+00:00Added an answer on June 14, 2026 at 2:35 am

    All characters do have numeric values assigned according to their corresponding codepoints in UNICODE (the initial 127 UNICODE code points match ASCII codes).

    Specifically, the numeric code of the “at” sign @ is 64, and the code of the dollar sign ‘$’ is 36.

    Also note that digits are characters as well, so they too have numeric values (48 through 57).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Doing some homework in my CSC 2310 class and I can't figure out this
Doing some homework here (second assignment, still extremely green...). The object is to read
while doing some homework in my very strange C++ book, which I've been told
I'm doing some homework and while I have some experience with SML, Haskell has
I was working on my advanced calculus homework today and we're doing some iteration
Doing some jquery animation. I have certain divs set up with an attribute of
I'm doing some computer network homework and I'm supposed to develop some sort of
First yes, this is a homework project for my Perl class. I am not
My goal is to hop on to C++ programming language by doing a homework
I'm having a little trouble with some basic trig. I'm doing some math homework,

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.