No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
6 Posted Topics
I've written this code to obtain an alternate display of '|' and '\*' starting with '|'. To ensure the altering of o/p I've used the yield(). But this doesn't seem to serve the purpose. Can someone point out where have I gone wrong ? import java.util.*; class Pat extends Thread …
Guys, is it legal to overload the run() method in a Thread class ?
I am getting a NullPointerException in the statement which I've hidden. Can some1 tell me why is it so ? [code] import java.io.*; class College { String branch,name = new String(); int avg_marks,rno; InputStreamReader in= new InputStreamReader(System.in); BufferedReader buf= new BufferedReader(in); String s=new String(); void read()throws IOException { System.out.println("Enter name"); …
Why do we overload operators ? Is it possible to add/subtract objects of a class without using overloaded '+' operator ?
Hi, In my opinion operator overloading is not applicable to your code at all since you have just object of your class "STATISTICS". Operator overloading can come to your aid only if you have multiple objects of the class and you want to modify their respective data members. Hope this …
Can I have a FOR Loop of in the following manner:[for(int i=0;(s[i]!='\0')|| s[i]!=' ';i++)][/CODE=C++] where 's' is a character array
The End.
bigsurya