Top "Charat" questions

The charAt() method is used to provide a single character by its index within a string.

How to copy from a string to another string in Java?

I have two strings str1 and str2. I am trying to copy some letters from one string to the other …

java string substring charat
How can I check if the char array has an empty cell so I can print 0 in it?

Code: public void placeO(int xpos, int ypos) { for(int i=0; i<3;i++) for(int j = 0;j<3;j++) { // …

java loops char compare charat
loop over array using charAt to get first letter of each value in javascript

I am new to JS and am trying to understand chartAt. I created a problem where I want to go …

javascript arrays charat
Java String/Char charAt() Comparison

I have seen various comparisons that you can do with the charAt() method. However, I can't really understand a few …

java char comparison charat
string index out of bounds error in java (charAt)

Quick question. I have this code in a program: input = JOptionPane.showInputDialog("Enter any word below") int i = 0; for (int …

java charat
traverse a string char by char javascript

function SimpleSymbols(str) { var letter =['a','b','c','d','e','f','g','h','i','j', 'k','l','m','n','o',…

javascript charat
How to use something like the charAt for integers

I am trying to make a program that uses three digit numbers to identify items and I am trying to …

java string char int charat
Java += operator on String with charAt() methods results in char addition

I'm working through the problems on Codingbat.com and bumped into the fact that for the += operator, a += b isn't …

java string operators charat
Java: find common characters in two strings

I'm asked to write a program that finds the common characters in two strings using the indexOf(char) method and …

java for-loop char indexof charat
Title Case JavaScript

I am trying to create a function in which after toLowerCase() input, will then capitalize the first letter in each …

javascript arrays for-loop lowercase charat