Em Andamento

Java, explanation of code

Hi,

I was asked if I could explain the following code. I've never looked at Java before or even used rentacoder so would really appreciate some help.

See below for code. If i'm bit vague on any of the points please e-mail me

Thanks

CHRIS

P.S not to insult anyone's intelligence but a palindrome is a word spelt the same fward as backward i.e. mum or dad.

## Deliverables

class Palindrome {

public static void main( String [] args) {

char [] c = args[0].toCharArray();

char [] r = reverse( c);

if (equals( c, r)) {

[url removed, login to view]( "The string \"" + args[0] + "\" is a palindrome.\n"); }

else {

[url removed, login to view]( "The string \"" + args[0] + "\" is not a palindrome.\n"); } }

private static char [] reverse( char [] c) {

char [] r = new char[ [url removed, login to view]];

for ( int i=0; i < [url removed, login to view]; i++) {

r[i] = c[ [url removed, login to view] - (i + 1)]; };

return r; }

private static boolean equals( char [] c1, char [] c2) {

boolean result = [url removed, login to view] == [url removed, login to view];

if (result) {

for (int i = 0; i < [url removed, login to view]; i++) {

if (c1[i] != c2[i]) {

result = false; } };

return result; }

else {

return false; } }

}

I would like a detailed description of this code in a MS Word 2000 Document so if I had to explain what this code means I could. Explaining what each line of the above code means. Please note that the code has been attached as a zip file and in the deliverables. I need the description of this code by 2moro.

## Platform

Doesn't need to run on any system must be entered in a Microsoft Word 2000 document.

Habilidades: Java, PHP

Ver mais: int i, code line, microsoft word line, palindrome, mum, java reverse, java mail, dad, c1, java means, explain java code, java code description, file system java, palindrome java, line java, java string, php code points system, explaining java code, explain java file, code explanation, detailed explanation, code java means, java word file, means php code, code zip

Acerca do Empregador:
( 0 comentários ) United Kingdom

ID do Projeto: #2993910

Premiar a:

vw472664vw

See private message.

$3 USD em 1 dia
(37 Avaliações)
3.0

6 freelancers estão ofertando em média $6 para este trabalho

makshe

See private message.

$4.25 USD em 1 dia
(41 Comentários)
4.6
creativetechies

See private message.

$4.25 USD em 1 dia
(9 Comentários)
3.2
barbourwill

See private message.

$12.75 USD em 1 dia
(3 Comentários)
2.3
vw998246vw

See private message.

$3.4 USD em 1 dia
(0 Comentários)
0.0
jimmackvw

See private message.

$11.05 USD em 1 dia
(0 Comentários)
0.0