Computing.Net > Forums > Office Software > please I need some 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 some help

Reply to Message Icon

Name: dvjmn
Date: October 28, 2009 at 14:19:06 Pacific
OS: programming
Product: Ibm Visualage for java
Subcategory: General
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: DerbyDad03
Date: October 28, 2009 at 16:36:01 Pacific
Reply:

May I suggest that when you post to a forum that you use a subject line that is more relevant to the content of your post?

Can you imagine how hard it would be to tell one thread from another if everyone in this forum used a subject line like "Help Me!" for all different types of questions?

That said, this forum is for Office applications such as Word, Excel Outlook, etc.

You might get a better response rate if you post your question in the Programming forum:

http://www.computing.net/forum/prog...

Make sure that you use a relevant subject line when you repost.


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 some help

Need help in Excel www.computing.net/answers/office/need-help-in-excel/4352.html

Excel VB code needs tweaking please www.computing.net/answers/office/excel-vb-code-needs-tweaking-please/6974.html

Help me with word! www.computing.net/answers/office/help-me-with-word/6798.html