user66656: in my code, I was using string class to make an array to store my menu items
String menu[2] = {{"Menu 1"}, {"Menu2"}};

How do I convert this into char arrays and how do I call them?
Example:
Serial.println(menu[0]);


user33871: Create them as char arrays like this:
const char* menu[2] = {"Menu 1", "Menu 2"};

and use them like this:
Serial.println(menu[0]);


66656: <p>in my code, I was using string class to make an array to store my menu items</p>
<pre><code>String menu[2] = {{&quot;Menu 1&quot;}, {&quot;Menu2&quot;}};
</code></pre>
<p>How do I convert this into char arrays and how do I call them?</p>
<pre><code>Example:
Serial.println(menu[0]);
</code></pre>
 33871: <p>Create them as char arrays like this:</p>
<pre><code>const char* menu[2] = {&quot;Menu 1&quot;, &quot;Menu 2&quot;};
</code></pre>
<p>and use them like this:</p>
<pre><code>Serial.println(menu[0]);
</code></pre>
