I am willing to create a program that outputs all the possible permutations of a string. For example: Input abc Output I am able to get this outp ...
I am willing to create a program that outputs all the possible permutations of a string. For example: Input abc Output I am able to get this outp ...
I am currently trying to figure out why the cases that end with x results in an OutOfBoundsError like the 3 test cases below. The assignment is to co ...
I'm experimenting with the input() function. I'm trying to make the code to loop for user input and continue or break the loop based on the user input ...
I'm trying to concatenate a string with itself and remove all capital letters from the resultant string. Here is my code: I'm getting Exception sa ...
I don't know, where I went wrong. I get "String index out of range: 4" as error. Input: a1b4c3 Output: abbbbccc ...
I am trying to get a substring out of a string. I have written logic to provide a start index and an end index but getting below exception. The code i ...
Hey guys I am trying to count word frequency in the given input which has many lines. I stored it in an ArrayList and put it as a paramenter. First ...
I am trying to create a program for taking ad IP address as input and give Class, netID, and hostID as output. I am having a problem in taking IP addr ...
Code : import java.io.; import java.util.; public class Solution { } ISsue : GEtting run time exception while running the code. --> String in ...
I am brand new in programming. I keep getting the error what(): basic_string::at: __n (which is 14) >= this->size() (which is 14) ...
I'm trying to make a program that takes in a string like: KKKKKKKKKKKKKBCCDDDDDDDDDDDDDDDKKKKKMNUUUGGGGG And returns something like this: $K13BCC$D15 ...
The program works, however, I still get a logical error: the final letter doesn't run through. For example, when I enter aaaabbbbccccdddd the output I ...
I am trying to convert a string consisting of numbers separated by a hyphen ('-') into a list that contains only the numbers. For example:- if a strin ...
I've been trying to encode a string (ex: aabbbacc) to something like a2b3a1c2 this is the code i've tried: the problem is even though I've added an ...
I'm new to Java and I keep trying to debug my code to no avail. I'm trying to use arrayList to build an array for a newEmployee and append it an array ...
I am quite new to java. I am wondering if it is possible to check for a certain number of consecutively repeated characters (the 'certain number' bein ...
I am trying to create a function that will return rows pertaining only to particular month and year: df Defining function Calling function E ...
I am writing a simple code that displays only the name of the processes which are of "console" type using tasklist in java. I am unable to do so beca ...
Getting exception in the code below: And error with the answer is: 777 777 ...
I have an array, recognised as a 'numpy.ndarray object' which prints the following output when running the following code: Output: I really want ...