Skip to content

Created HexaDecimalToDecimal.java#424

Merged
christianbender merged 2 commits into
TheAlgorithms:masterfrom
khairi96:master
May 20, 2018
Merged

Created HexaDecimalToDecimal.java#424
christianbender merged 2 commits into
TheAlgorithms:masterfrom
khairi96:master

Conversation

@khairi96
Copy link
Copy Markdown
Contributor

added HexaDecimalToDecimal.java on conversions.
it converts Hexadecimal input to decimal.

added HexaDecimalToDecimal.java on conversions.
it converts Hexadecimal input to decimal.
Copy link
Copy Markdown

@christianbender christianbender left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Work! I have a request

Comment thread Conversions/HexaDecimalToDecimal.java Outdated
int val = 0;
for (int i = 0; i < hex.length(); i++)
{
char c = hex.charAt(i);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • This line is useless. Because you can add the result of hex.charAt(i) right away to the method indexOf(...) (below)

@khairi96
Copy link
Copy Markdown
Contributor Author

Done ! thank you for your consideration.

@christianbender christianbender merged commit ad0e95c into TheAlgorithms:master May 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants