Computing.Net > Forums > Windows XP > please I need help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

please I need help

Reply to Message Icon

Name: dvjmn
Date: October 28, 2009 at 10:33:50 Pacific
OS: Windows XP
Product: Ibm Visualage for java
Subcategory: General
Tags: XP
Comment:

this my code i try to complete it but I couldnt
I need to find the midean
import java.util.*;
import java.io.*;
class Task75{
public static void main(String[] args)throws Exception{
File myFile= new File("in.txt");
Scanner reader= new Scanner(myFile);
//PrintStream output=new PrintStream("output.txt");
ArrayList<String> store= new ArrayList<String>();

int i = 1;
while(reader.hasNext()){
String str = reader.nextLine();
System.out.println(str);
i++;
int j = i/2;
System.out.println(j);
}
}
}



Sponsored Link
Ads by Google

Response Number 1
Name: wanderer
Date: October 28, 2009 at 13:07:16 Pacific
Reply:

doesn't look like a xp question. does look like a programming question. please try to post in the correct forums. Thanks


0
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: please I need help

I need help bad www.computing.net/answers/windows-xp/i-need-help-bad/50925.html

I really screwed up I need HELP! www.computing.net/answers/windows-xp/i-really-screwed-up-i-need-help/108167.html

Please I Need drivers www.computing.net/answers/windows-xp/please-i-need-drivers/25786.html