But how could I do this such that I could represent the 4 in the array with "?" and still use it in the integer array? I don't see this being logically right but I am asking to be sure that I am...
Type: Posts; User: help_desk
But how could I do this such that I could represent the 4 in the array with "?" and still use it in the integer array? I don't see this being logically right but I am asking to be sure that I am...
So, is there no possible way to I could replace an integer value in an integer array to some character like "?" ? I have an array with the values {1,3,2,4} but want it to be {1,3,2,?} . Is this not...
Hi, ok I will try that . Please, this is just a side note. Imagine I have an array of integers with the following numbers {1,2,3,4} but I want to replace the 4 with ? so that in the end, the array...
Hello, the problem is a bit strange as there are no errors. The only logical thing is in the method, this line is a suspect:
br = new BufferedReader(new FileReader(source));
because when I...
But why is it false? the source.txt has 4 lines. So, the loop should run atleast 4 times.
--- Update ---
I will try this but why is the readline not true?
Hello, please, I have a file(source.txt) that contains some texts. Now, the java code is to run through each line in the source file and check if that line begins with a number and if true, copy that...