Ir para conteúdo
  • Cadastre-se
  • 0

Help compilar required: boolean


astro10

Pergunta

8 respostass a esta questão

Posts recomendados

  • 0

Isso ai falta adaptação, nessa rev o método isOnline retorna zero ou um para verdadeiro ou falso de que está online, sendo assim a comparação que dever ser feita é : 
 

O conteúdo está oculto, favor efetuar login ou se cadastrar!
O conteúdo está oculto, favor efetuar login ou se cadastrar!

 

"Tente ser uma pessoa de valor , não de sucesso" - Albert Einstein

 

 

Link para o comentário
Compartilhar em outros sites


  • 0
4 minutos atrás, Tayran.JavaDev disse:

Isso ai falta adaptação, nessa rev o método isOnline retorna zero ou um para verdadeiro ou falso de que está online, sendo assim a comparação que dever ser feita é : 
 

O conteúdo está oculto, favor efetuar login ou se cadastrar!
O conteúdo está oculto, favor efetuar login ou se cadastrar!

 

vou testar esse método

Link para o comentário
Compartilhar em outros sites

  • 0
40 minutos atrás, Tayran.JavaDev disse:

Isso ai falta adaptação, nessa rev o método isOnline retorna zero ou um para verdadeiro ou falso de que está online, sendo assim a comparação que dever ser feita é : 
 

O conteúdo está oculto, favor efetuar login ou se cadastrar!
O conteúdo está oculto, favor efetuar login ou se cadastrar!

 

deu certo obg tay ♥

XL2FKTw.png

Editado por astro10
Link para o comentário
Compartilhar em outros sites

  • 0
4 horas atrás, melron disse:

What will it break? Both cases are correct since you can change the signature of the method (alt + shift + c) and in 5 seconds the whole method will be changed with the new parameters and it will auto-find all previous methods and edit them by itself with the new structure of it <font style=?">  so in a few words, drop the shit isOnline () which is returns int (wtf?) and make it returns boolean variable ...

 

A sua solução da muito mais trabalho por que vai ter que mudar tudo em todas as chamadas do método que estará modificando do projeto, só isso, não estou afim de discutir o que é melhor não, ainda mais em inglês.

Editado por Tayran.JavaDev

"Tente ser uma pessoa de valor , não de sucesso" - Albert Einstein

 

 

Link para o comentário
Compartilhar em outros sites

  • 0
15 minutos atrás, Tayran.JavaDev disse:

 

Your solution of much more work because it will have to change everything in all the calls of the method that will be modifying the project, that's it, I'm not in the mood to discuss what is best, not even in English.

You dont have to... I'm just saying that both cases are correct and effectiveness, independently of how much time will you spend.

Link para o comentário
Compartilhar em outros sites

  • -1

isOnline() method returns int value. so your check must be 

O conteúdo está oculto, favor efetuar login ou se cadastrar!

another solution is to make a edit your method and make it returns boolean instead of int.

 

O conteúdo está oculto, favor efetuar login ou se cadastrar!

 

Editado por melron
Link para o comentário
Compartilhar em outros sites

  • -1
16 minutos atrás, melron disse:

isOnline() method returns int value. so your check must be 

O conteúdo está oculto, favor efetuar login ou se cadastrar!

another solution is to make a edit your method and make it returns boolean instead of int.

 

O conteúdo está oculto, favor efetuar login ou se cadastrar!

 

This solution is not applicable, because you will break the code for the rest of the project. The first solution presented is the most appropriate because the custom code being added to the project is adapting to the project code.
 

"Tente ser uma pessoa de valor , não de sucesso" - Albert Einstein

 

 

Link para o comentário
Compartilhar em outros sites

  • -1
51 minutos atrás, Tayran.JavaDev disse:

This solution is not applicable, because you will break the code for the rest of the project. The first solution presented is the most appropriate one because the custom code being added to the project is adapting to the project code.
 

What will it break? Both cases are correct since you can change the signature of the method (alt + shift + c) and in 5 seconds the whole method will be changed with the new parameters and it will auto-find all previous methods and edit them by itself with the new structure of it <font style=?">  so in a few words, drop the shit isOnline () which is returns int (wtf?) and make it returns boolean variable ...

Editado por melron
Link para o comentário
Compartilhar em outros sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Processando...
  • Registre-se

    Faça parte da maior e  mais antigas comunidades sobre Lineage2 da América Latina.





×
×
  • Criar Novo...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.