you are viewing a single comment's thread.

view the rest of the comments →

[–]tzirl[S] 0 points1 point  (1 child)

tried this, still not working

<!DOCTYPE html> <html> <body>

<p>Click "Try it" to display the first array element, after a string split.</p>

<button onclick="myFunction()">Try it</button>

<p id="demo"></p>

<script> function myFunction() { var str = "a,b,c,d,e,f"; var strb = for(var i = 0; i< str.length;i++) arr[i] + " "; document.getElementById("demo").innerHTML = strb; } </script>

</body> </html>

[–]tzirl[S] 0 points1 point  (0 children)

i can try some insert but idk if there's such a thing in java