No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
I'm doing a program on the addition of 2 Sparse Matrices. This is what I have coded- [code=java] import java.io.*; class Sparse { int r,c,m[][],s[][],count,rt; static int res[][]; public Sparse() { count=0; rt=1; } //Take the matrix public void read() throws Throwable { BufferedReader buff=new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter the number … |
|
Re:
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 the word. [CODE]import java.lang.String; public class StringCount2 { public static void main(String args[]) … |