Forum: Java Sep 5th, 2008 |
| Replies: 4 Views: 543 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 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 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 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 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 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 |
Forum: Java Aug 20th, 2008 |
| Replies: 2 Views: 306 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 |
Forum: Java Jul 31st, 2008 |
| Replies: 6 Views: 698 |
Forum: Java Jul 31st, 2008 |
| Replies: 6 Views: 698 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 |
Forum: Java Jul 30th, 2008 |
| Replies: 6 Views: 2,811 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 |
Forum: Java Jul 28th, 2008 |
| Replies: 8 Views: 615 |
Forum: Java Jul 28th, 2008 |
| Replies: 2 Views: 747 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 |
Forum: Java Jul 24th, 2008 |
| Replies: 8 Views: 615 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... |