+ 2

In which data type should I store "*"?

In which data type should I store "*"? I want to make little pattern program.

18th Dec 2017, 3:06 PM
Sad
Sad - avatar
10 Answers
+ 5
Then use String!
18th Dec 2017, 3:21 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 6
For pattern program don't store "*"! Tell me what you need to do!
18th Dec 2017, 3:21 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
18th Dec 2017, 3:24 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 6
As you can see "*" is so simple, you just avoid the hassle and use that instead of a variable!
18th Dec 2017, 3:27 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 5
char if C++,C#,Java
18th Dec 2017, 3:17 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
It's saying that chat can not be converted to String. I am using System.out.printl
18th Dec 2017, 3:20 PM
Sad
Sad - avatar
+ 2
Thanks it worked. I just want to try and make little pattern program. I guess thats called pattern program. For example little triangle with for loop.
18th Dec 2017, 3:23 PM
Sad
Sad - avatar
+ 2
Yes :)
18th Dec 2017, 3:27 PM
Sad
Sad - avatar
+ 2
Yes I got that. Thanks a lot!
18th Dec 2017, 3:28 PM
Sad
Sad - avatar
+ 1
I want to make any shape, as I want to just try first.
18th Dec 2017, 3:27 PM
Sad
Sad - avatar