How can you check to see if the first two letters in the ArrayList is equal to something and then increase the sum in java?

后端 未结 0 1085
眼角桃花
眼角桃花 2021-01-22 06:11

I made a program to do the above, but it keeps printing the sum as 0. The goal is if the string\'s index (0,2) is "ab" then the sum is increased by 1. So far this is w

相关标签:
回答
  • 消灭零回复
提交回复
热议问题