Showing results 1 to 18 of 18
Search took 0.01 seconds.
Posts Made By: newtechie
Forum: Java Sep 5th, 2008
Replies: 4
Views: 543
Posted By newtechie
Re: read from file

i refined the code and now it reaches the end of file before printing the final value can anyone pls. help me out .

import java.util.*;
import java.io.*;
public class Fiveproducts1
{

static...
Forum: Java Sep 4th, 2008
Replies: 4
Views: 543
Posted By newtechie
Re: read from file

should we not use buffered reader for reading character,i have used datainput and dataoutput stream to read and write primitive data type.
if i am wrong correct me
Forum: Java Sep 3rd, 2008
Replies: 4
Views: 543
Posted By newtechie
read from file

i have a file from which i have to read and compute the total value of all items,i dont know what methodto use to read arrays
i tried DataInputStream(object).readInt(quantity[]); but it says it is...
Forum: Java Sep 2nd, 2008
Replies: 4
Views: 1,045
Posted By newtechie
Re: word/line/character count in files

i modified the count word part and got the desired output

/*
pgm to count the characters in a file,no. of lines in a file and no. of words
*/
import java.io.*;
public class countCharacters
{
...
Forum: Java Sep 1st, 2008
Replies: 4
Views: 1,045
Posted By newtechie
Re: word/line/character count in files

thanks alex edwards the character part is working along with no. of lines but the no. of words seems to give a wrong output.
can you guide me in that
thanks in advance
Forum: Java Aug 30th, 2008
Replies: 4
Views: 1,045
Posted By newtechie
word/line/character count in files

i did a codig to find the no. of words,no. of characters and no. of lines in a file i was not getting the output, can anyone help me

import java.io.*;
public class countCharacters
{
public ...
Forum: Java Aug 20th, 2008
Replies: 2
Views: 306
Posted By newtechie
Re: Barchart

i changed the code and it works now
Forum: Java Aug 20th, 2008
Replies: 2
Views: 306
Posted By newtechie
Barchart

i have a problem in getting the required display in barchart

my intended display is

year91 -------------- 110

but i get a display as

year91 -------------- year91
Forum: Java Jul 31st, 2008
Replies: 6
Views: 698
Posted By newtechie
Re: occurence of a word in a text.

hi thyagi, i could not understand the if part



how you got those values for and b
pl. clarify
Forum: Java Jul 31st, 2008
Replies: 6
Views: 698
Posted By newtechie
Re: occurence of a word in a text.

thanks tyagi it works.
Forum: Java Jul 31st, 2008
Replies: 6
Views: 698
Posted By newtechie
occurence of a word in a text.

i was trying to write a code for counting the number of ocurence of a particular word from a sentence.it gives me a wrong output it starts checking for the same alphabets in the sentence rather than...
Forum: Java Jul 31st, 2008
Replies: 6
Views: 2,811
Posted By newtechie
Forum: Java Jul 30th, 2008
Replies: 6
Views: 2,811
Posted By newtechie
Re: Best Way to Check for same Word in string?

i have a similar problem where i have to find the number of occurences of a particular word from a sentence, i tried the code but it even counts the words which have those alphabets partly. can...
Forum: Java Jul 28th, 2008
Replies: 2
Views: 747
Posted By newtechie
Re: BufferedReader

thank you EZZARAL i tried that and it works now.
Forum: Java Jul 28th, 2008
Replies: 8
Views: 615
Posted By newtechie
Re: multi dimensional arrays

yes and i also tried a new coding which helped.





public class Exam3
{
public static void main(String args[])
{
Forum: Java Jul 28th, 2008
Replies: 2
Views: 747
Posted By newtechie
BufferedReader

hi i have a doubt i did this coding and when i complied it and tried to run the program evenupon giving the correct answer("ritchie") the output i got says answer is wrong.
can anyone tell me what is...
Forum: Java Jul 25th, 2008
Replies: 8
Views: 615
Posted By newtechie
Re: multi dimensional arrays

thank you all for your replies
Forum: Java Jul 24th, 2008
Replies: 8
Views: 615
Posted By newtechie
multi dimensional arrays

i am new to java and i was trying to solve a program,
a) i wanted to print marks scored by 3 students in 3 subjects.
b) i wanted to get the total marks scored by each student and find out the...
Showing results 1 to 18 of 18

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 5:36 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC