switch

String comparison via the Java switch statement

I need to compare the value that is in the object with each value from the prepared array. How do I do this? In my case, it g ... ch (text) { case labelsStr[0]: startActivity(new Intent(context, Color.class)); break; }

The simplest calculator in JavaScript. I can not understand why the code does not work, tell me, illiterate)

<script> function a() { var a1 = parseInt(document.getElementById('a1').value); ... tarea сols="20" rows="1" id="count" ></textarea> </p> </div> </body> </html>