Telegram Group & Telegram Channel
🚫 Антипаттерн недели: Использование == для сравнения строк

В Java строки (String) — это объекты, а оператор == сравнивает ссылки, а не их содержимое. Это может привести к неожиданным ошибкам при сравнении строк, особенно если строки создаются динамически.

✔️ Используйте метод equals(), который сравнивает содержимое строк, а не ссылки.

👉 Java Rocks | #полезное
Please open Telegram to view this post
VIEW IN TELEGRAM



tg-me.com/javarocks/185
Create:
Last Update:

🚫 Антипаттерн недели: Использование == для сравнения строк

В Java строки (String) — это объекты, а оператор == сравнивает ссылки, а не их содержимое. Это может привести к неожиданным ошибкам при сравнении строк, особенно если строки создаются динамически.

✔️ Используйте метод equals(), который сравнивает содержимое строк, а не ссылки.

👉 Java Rocks | #полезное

BY JavaRocks


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/javarocks/185

View MORE
Open in Telegram


JavaRocks Telegram | DID YOU KNOW?

Date: |

To pay the bills, Mr. Durov is issuing investors $1 billion to $1.5 billion of company debt, with the promise of discounted equity if the company eventually goes public, the people briefed on the plans said. He has also announced plans to start selling ads in public Telegram channels as soon as later this year, as well as offering other premium services for businesses and users.

The messaging service and social-media platform owes creditors roughly $700 million by the end of April, according to people briefed on the company’s plans and loan documents viewed by The Wall Street Journal. At the same time, Telegram Group Inc. must cover rising equipment and bandwidth expenses because of its rapid growth, despite going years without attempting to generate revenue.

JavaRocks from hk


Telegram JavaRocks
FROM USA