"Hai, Amigo. Berikut ialah beberapa tugas yang melibatkan penukaran jenis integer. Tambah operator cast jika perlu:"
3
Tugasan
Java Syntax, tahap, pelajaran
Task No. 1 about integer type conversions
This task begins a series of tasks about integer type conversions. This is not a very difficult topic, but it often bewilders noobies because instructors sometimes put in at the very beginning, which is fundamentally wrong. But on Level 10, you're ready. Arrange the cast operators correctly to get the required result: d > 0. The operators are in the conditions.
3
Tugasan
Java Syntax, tahap, pelajaran
Task No. 2 about integer type conversions
The second task in the "Integer Type Conversions" series doesn't seem much different from the previous one at first glance. This is by design. This series was specifically created to make you a "conversion veteran" and simultaneously introduce your brain to type conversion rules in Java. Arrange the cast operators correctly to get the required result: d = 3.765. The operators are in the conditions.
3
Tugasan
Java Syntax, tahap, pelajaran
Task No. 3 about integer type conversions
"Nothing organizes your thinking as much as performing integer type conversions in your head. Of course, a compiler will also suffice". And now, the third task in the "Integer Type Conversion" series. We have some variables converted to another type, but we don't have enough of them. We need to add one type cast operation to obtain the require answer.
6
Tugasan
Java Syntax, tahap, pelajaran
Task No. 4 about integer type conversions
What do we have here in the secret CodeGym center? We have the fourth task in the "Integer Type Conversion" series. Here are its brief conditions: We have short number = 9, char zero = '0' and int nine = (zero + number). Add one cast operation to get the nice and correct answer: nine = 9. We think you can do it.
3
Tugasan
Java Syntax, tahap, pelajaran
Task No. 5 about integer type conversions
Integer types exist in nature. That's why they seem so natural to us. But sometimes they don't suit our purposes. You need to intervene and convert them to other types. In the fifth task in the "Integer Type Conversion" series, we need to rearrange cast operators to get the correct answer. Look at the task conditions. There's a lot of interesting stuff there =).
3
Tugasan
Java Syntax, tahap, pelajaran
Task No. 6 about integer type conversions
Here's the sixth task in the "Integer Type Conversions" series. What are we shooting for here? We want you to master these techniques so you don't have to relearn them. This time our task has too many cast operators. Superfluous conversions have crept in. Find and remove them to get the required answer.
3
Tugasan
Java Syntax, tahap, pelajaran
Task No. 7 about integer type conversions
This is the seventh and final task in the "Integer Type Conversion" series. Seven will suffice to get you started. It doesn't contain anything original, but it will give you knowledge. So, there's this code that has a lot of cast operators in it. Remove the superfluous and be happy! This series was prepared specifically for the CodeGym training center by Professor Noodles. Don't abandon your studies.