Search Results

Showing results 1 to 40 of 80
Search took 0.01 seconds.
Search: Posts Made By: parthiban
Forum: Java Jan 1st, 2009
Replies: 5
Views: 481
Posted By parthiban
Hi Sriran1 ,

what jasimp said is correct expect that implementing a interface is *NOT* mean "Has-A" relationship.

Has-A relationship is what when an Class has other Class's object...
Forum: Java Jun 13th, 2008
Replies: 1
Views: 1,999
Posted By parthiban
Hi all,

I have searched about difference between KeyPressed and KeyTyped Events but still I'm not clear about that . One thing I have found is Keypressed is triggered first than KeyTyped .
...
Forum: Java May 12th, 2008
Replies: 3
Views: 570
Posted By parthiban
Hi jwenting ,
Can you explain bit more ? How can I do that ?

Thanks
Forum: Java May 12th, 2008
Replies: 3
Views: 570
Posted By parthiban
Hi all ,

I'm trying to display currency in Indian format but I'm getting question marks symbols instead of digits .

Please tell me how to sort out this problem .

Thanks in advance
Forum: Java Apr 18th, 2008
Replies: 1
Views: 344
Posted By parthiban
Hi all ,

I'm trying to do find and highlight program which finds a given word by highlighting it in the textarea.
I'm finding the word in a textarea which has both vertical and...
Forum: Java Apr 15th, 2008
Replies: 1
Views: 488
Posted By parthiban
Hi torbecire ,



Maze N = new Maze(row, col)

Above line constructs Maze object .
It has a two dimension array of type MazeCell (M) - which is it's Instance Variable.

so it creates that...
Forum: Java Apr 4th, 2008
Replies: 1
Views: 405
Posted By parthiban
Hi seang85,
I don't want to do your homework but here is where going wrong .

There is a build in function to ease your work .Try to find it .
Forum: Java Mar 3rd, 2008
Replies: 4
Views: 716
Posted By parthiban
Thanks to masijade and jwenting for their replies . I might not stated the problem clearly. so
this is what I have to do:

When I send a message from one host to another it should appear as a...
Forum: Java Mar 3rd, 2008
Replies: 4
Views: 716
Posted By parthiban
Hi all ,

I'm new to Networking programming in JAVA .I want to send messages across hosts which are in the same Domain without using any Server program .
I'm not clear whether to use UDP or...
Forum: Java Dec 30th, 2007
Replies: 5
Views: 807
Posted By parthiban
Hi Loreto,

Since I assume you have tried your best here is my help.
If you are serious about programming please don't just do copy and paste work instead Understand and use this snippet.
...
Forum: Java Dec 23rd, 2007
Replies: 2
Views: 873
Posted By parthiban
Hi curt22 ,

It's best practice to separate event handling method from the event source class(class which contains UI widgets). So that later it will be easy to change that without affecting...
Forum: Java Dec 11th, 2007
Replies: 2
Views: 1,269
Posted By parthiban
Ezzaral ,thanks a lot for pointed out a useful link for my reference. It really helped.
Forum: Java Dec 9th, 2007
Replies: 2
Views: 1,269
Posted By parthiban
Hi all ,

I had created a Document using jTextPane which I will use as a Template to create customize ones .

For eg :
I will create something like this in a Document using jTextPane...
Forum: Java Nov 16th, 2007
Replies: 2
Views: 939
Posted By parthiban
Hi da,

Suggest me good books for Swing and JDBC(apart from Sun tutorials -which I will use) .

I have basic knowledge of Swing which I read from Head First Java but I don't know anything about...
Forum: Java Nov 11th, 2007
Replies: 3
Views: 5,208
Posted By parthiban
Hi ,
You must have a condition to break the recursive call.
That is if that condition meets it should not call itself.
Forum: Java Nov 3rd, 2007
Replies: 7
Solved: tic-tac-toe!
Views: 7,083
Posted By parthiban
Hi,

You are "==" operator which checks either sides of references points to the same object .
That is checks the memory location not the contents . So use equals() function to check the contents(...
Forum: Java Nov 3rd, 2007
Replies: 5
Views: 849
Posted By parthiban
To learn about constructors and their usage
Follow this link (http://java.sun.com/docs/books/tutorial/java/javaOO/constructors.html)
Forum: Java Nov 3rd, 2007
Replies: 1
Views: 1,420
Posted By parthiban
Hi,

Class definition should contain only variable and method declarations(and or definitions).

Your while loops should be with in some function.
Forum: Java Nov 2nd, 2007
Replies: 5
Views: 849
Posted By parthiban
Hi ,

You don't have the reported methods(getID(),getAge(), setAge(int),setID(int)) definitions in Record Class.




and also you should have Three argument constructor with appropriate types...
Forum: Java Nov 1st, 2007
Replies: 14
Views: 1,760
Posted By parthiban
Hi ,

In that program what you think are constructors are not constructors at all .

There are treated as methods since it doesn't satisfy constructor's rule and methods must have return type and...
Forum: Java Oct 29th, 2007
Replies: 2
Views: 1,393
Posted By parthiban
Forum: Java Oct 29th, 2007
Replies: 2
Views: 1,108
Posted By parthiban
Thanks masijade , I thought that I should use either of the one
Forum: Java Oct 29th, 2007
Replies: 4
Views: 1,884
Posted By parthiban
Forum: Java Oct 27th, 2007
Replies: 2
Views: 1,108
Posted By parthiban
Hi all ,

Here are my questions :

I like to know when to use Serialization and when should the preference will be given to Database to persist an Object .

To use a database with Java at what...
Forum: Java Oct 27th, 2007
Replies: 2
Views: 1,393
Posted By parthiban
Hi all,

I'm learning Serialization in JAVA .
I learned that "an array object is serializable as long as the things in the array are serilizable" .

I just need a clarification on that...
Forum: C++ Oct 24th, 2007
Replies: 5
Views: 5,188
Posted By parthiban
Hi ,




This function expects pointer as argument but you are passing a character .

so pass the address of that character as
Forum: C++ Oct 21st, 2007
Replies: 5
Views: 1,136
Posted By parthiban
Hi ,

The problem is due to ';' at switch statement.

writing
is same as
that is the case statements are not belonging to this switch statement where it should be.
Forum: C++ Oct 20th, 2007
Replies: 9
Views: 1,198
Posted By parthiban
What I mean is :

void func1()
{
call_fun2(); // legal
}

void func1()
{
void fun2() // illegal
Forum: C++ Oct 20th, 2007
Replies: 9
Views: 1,198
Posted By parthiban
Hi koldsoul ,

In that function I didn't came across any usage of "rate" variable at all.

mainly , you didn't catched the returned value of calculate() function.

you can call functions...
Forum: C++ Oct 20th, 2007
Replies: 9
Views: 1,198
Posted By parthiban
can you post the updated program ?
Also specify exactly what problem you are facing .
Forum: C++ Oct 19th, 2007
Replies: 3
Views: 606
Posted By parthiban
The problem is due to type conversion.
int/int will always yield int .
Forum: C++ Oct 19th, 2007
Replies: 9
Views: 1,198
Posted By parthiban
Hi ,
You didn't invoked that function(calculate) properly .
Forum: C++ Oct 17th, 2007
Replies: 3
Views: 1,420
Posted By parthiban
Hi ,

while declaring functions you need to mention the data type with variable name(optional) but not just variable names.
There should be a function definition which corresponds to declaration....
Forum: Java Oct 17th, 2007
Replies: 2
Views: 504
Posted By parthiban
If you used some text editor to create that file then make sure that it is not appended with ".txt" extension(or something else).

type dir *.java in that directory and check that your file is...
Forum: C Oct 16th, 2007
Replies: 4
Views: 964
Posted By parthiban
Hi ,

Here's the solution:

#include <stdio.h>
#include <string.h>
#define N_STRINGS 7
#define arrayword 15
#define maxletters 15
Forum: C++ Oct 15th, 2007
Replies: 5
Views: 932
Posted By parthiban
Hi koolboy ,


That's a simple problem .Actually your are getting four inputs for each division but that problem is due to the statement
cout << "Enter the sales for " << "North East" << "...
Forum: C++ Oct 15th, 2007
Replies: 5
Views: 932
Posted By parthiban
Hi


You decleared highest as "string" type but assigning float value to that .
highest = NE

That's the problem

I guess your intention is to output the highest number amoung the four.if it...
Forum: Java Oct 14th, 2007
Replies: 4
Views: 796
Posted By parthiban
Oh !!! ok .I didn't read carefully what you expected .

Here is what you expect:

do {
input = JOptionPane.showInputDialog(null, "Please enter a...
Forum: Java Oct 14th, 2007
Replies: 1
Views: 4,897
Posted By parthiban
It's simple .
Before displaying that number check whether it an even number
while( num3 <= 377){ //loop ends after calculating the first 15 fibonacci numbers
num3 = num1 +...
Forum: Java Oct 14th, 2007
Replies: 4
Views: 796
Posted By parthiban
Hi newbieGirl
Here's the solution:

import javax.swing.JOptionPane;


public class Summer
{

public static void main(String args[])
Showing results 1 to 40 of 80

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC