title: Can I use scanner.skip() and scanner.hasNextLine() together?
body: <p>Can I use .skip()  and .hasNextLine() together? </p>
  
  <p>I'd like to have all nextline elements as long as they are not \r\n
  For clarification, I have an excel document that does this:</p>
  
  <p>I have an excel document that looks like this: <a href="https://imgur.com/Lwhy7K1" rel="nofollow noreferrer">https://imgur.com/Lwhy7K1</a></p>
  
  <p>Which per my understanding reads like "1", "Day 1 \r\n Day2","4974","54","67","\n"
  "2","Day3","56843","568","5496"</p>
  
  <p>I have no control over this. It WILL come like this
  In my program, I am making each row a different object.</p>
  
  <p>I would like to read it like this
  <a href="https://i.imgur.com/f5O6TbR.png" rel="nofollow noreferrer">https://i.imgur.com/f5O6TbR.png</a></p>
  
  <p>Which per my understanding reads like  "1", "Day 1 Day2","4974","54","67","\n" "2","Day3","56843","568","5496"</p>
  
  <p>Originally, I was going to make one giant long string and then use the replace to replace all "\r\n" with a simple "   ", which solves my entire problem. But I do not know how to get the entire scanner object in one long string with all the line breaks etc. From there I could create a simple array of lines and then make my objects. but it keeps breaking on the first "\n" that is in the same cell.</p>
  
  <p>So I had an idea, I don't need to do the entire replace. I can just SKIP the parts that contain "/r/n" and create the string so its only ending on "\n" NOT "\r\n".</p>
  
  <p>I was hoping to do something like .skip("\r\n").hasNextLine() ie the following: </p>
  
  <pre><code>public static void readMe(Scanner fieldScan) {
      int row = 0;
      while (fieldScan.skip("\r\n").hasNextLine()){ 
          row++;
          String currentLine = fieldScan.skip("\r\n").nextLine();
          Field currentField = new Field(currentLine, row);
          if(!currentField.getRemove()) {
              fieldArrayList.add(currentField);
          }
  
      }
  </code></pre>
  
  <p>But this is not correct. And I do not understand why. </p>
  
  <p>EDIT: What I want to do EXACTLY is count those as one row. it there is a line break, currently it is treating that as the current line.</p>
  
  <p>so it would look like "1","Day 1" and thats all my information for that row.</p>
  
  <p>I want all my information to be in one row. Instead of "Day 1" and "Day 2" being on two separate lines, I want them on one line, so it doesn't break up when I create objects</p>