2 Replies - 889 Views - Last Post: 17 February 2010 - 09:36 AM Rate Topic: -----

#1 jbloomf2   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 17-February 10

Read in integers from files and then separating them from even and odd

Posted 17 February 2010 - 08:51 AM

I am confused about how to read in data from a file and then separating the integers from even and odd into either an even.txt file or odd.txt file.

Here's what I have so far:

import java.util.Scanner;
import java.io.*;

public class FileRead
{
Is This A Good Question/Topic? 0
  • +

Replies To: Read in integers from files and then separating them from even and odd

#2 anonymouscodder   User is offline

  • member icon

Reputation: 126
  • View blog
  • Posts: 710
  • Joined: 01-January 10

Re: Read in integers from files and then separating them from even and odd

Posted 17 February 2010 - 09:24 AM

View Postjbloomf2, on 17 February 2010 - 11:51 AM, said:

Here's what I have so far:

import java.util.Scanner;
import java.io.*;

public class FileRead
{


You forgot to post the rest or are you kidding me?
Was This Post Helpful? 0
  • +
  • -

#3 SwiftStriker00   User is offline

  • No idea why my code works
  • member icon

Reputation: 440
  • View blog
  • Posts: 1,618
  • Joined: 25-December 08

Re: Read in integers from files and then separating them from even and odd

Posted 17 February 2010 - 09:36 AM

Well hes separating his homework into multiple posts, and in his other post he has more code, so Im going to go with he has more code than that
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1