Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Sete.java #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update Sete.java #1

wants to merge 1 commit into from

Conversation

victorodg
Copy link
Owner

uma pequena correção

class l4ex7 {
public static boolean Inverso (int [] num) {
boolean teste = true;
for (int i = 0; i<num.length/2; i++) {
if (num [i] != num[num.length - 1 - i]) {
teste = false;
}
}
return teste;
}
public static void main (String [] args) {
int [] num1 = {2,4,4,4,2};
System.out.println (Inverso (num1));
}
}

uma pequena correção
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.

1 participant