We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Java
- Strings
- Java Strings Introduction
- Discussions
Java Strings Introduction
Java Strings Introduction
Sort by
recency
|
1264 Discussions
|
Please Login in order to post a comment
Language: JAVA
This is not the prettiest of solutions and I am still new to coding in general. I just wanted to share my results from this test with the knowledge I have right now. This solution while is not the prettiest passes all the test cases, I added comments for anyone who is learning just as myself. I encourage anyone learning to not just use random code you find in the comments if you don't completely understand and work through the solution with what you know. In this case I worked backwards getting what needed to print, printed. Then I worked on solve each of the problems needed one by one, removed redundant prints, and added comments. I worked on each block as I passed each scenario grouping. Revised Removed redundant code.
public class Solution {
}
public class Solution {
}
JAVA SOLUTION
import java.io.; import java.util.;
public class Solution {
}