Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Perhaps you should look through this for some clarification: http://java.sun.com/docs/books/tutorial/java/concepts/index.html

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

No, each employee is it's own instance. The class is just a template for that instance. All Employee objects would have the same property fields, but the values of those properties are different for each employee.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Well, go through each of those methods and ask yourself, "Does this data or action apply to one and exactly one particular employee?". If it does, it goes there. If it doesn't then it goes in some other class that manages that particular functionality.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Everyone learns at some point :)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

It is declared, yes, but it is not initialized

Stopwatch Clock = new Stopwatch();

(It really should be "clock" instead of "Clock". Common convention is for variables to start with a lowercase letter. Classes are capitalized.)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

No, it would go in an Employee class, which would contain all of the data pertaining to a particular employee.

The payroll program works with employees, but is not itself an employee. Class design is an exercise in separation of responsibilities.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

hi.... 'm in my final yr engineering... really confused as to wat topic to take up as my project.. can u pls help me...

Write a translator that converts "IM speak" to intelligent, professional language. Use it yourself and encourage your classmates to use it as well. It will be of great benefit in the journey to the professional working world.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Your requirement, as stated, is non-functional.

Alex Edwards commented: XD +4
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Read each of them like you would any other text file and use Regular Expressions to parse them.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Guilty as charged...
:icon_wink:

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
new SearchResult(String s).setVisible(true);

Read any reference at all on Java and you will see that this is not the correct way to call a method. Method calls do not include the type with the parameter.

This is HelloWorld-level basic language semantics. I would recommend reading a lot of this: http://www.codeguru.com/java/tij/

masijade commented: Great endurance to read through that, for something like this. ;-) +8
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Recommended reading:
http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html

Good reference for general Java language topics:
http://www.codeguru.com/java/tij/

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Yes, perhaps I should have said post the relevant code and use [code]

[/code] tags, if you want anyone to read it.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Well, we can't read over your shoulder. Post the code and perhaps someone can tell you what's wrong with it.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

And your question is what? Is there a purpose in posting your homework assignment?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I would recommend Java or C#. There are forums for both of those here to assist with questions:
Java
C#
The Java forum has a Read Me: Starting Java post at the top of the forum with plenty of information to help you get started. I didn't see such a post in the C# forum, but I am sure they could point you towards some good intro material if you were to ask.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Use search. This request has been made hundreds of times here already.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

the one you create has 100 error on my jcreator.,,
im uusng jdk1.5.0_16 file.,,, can you reply me with running program?

Then fix the errors. If you want to copy code from others, you assume the risk that it's bad code.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

No, he wants the index to wrap back around in a loop against a fixed-size array. A circular array iteration is what he is asking about.

Your code merely alters the elements [8] through [length-1] to count up from zero until the end of the array.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

No, that is nothing like what he is looking for at all.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

..the reason i am saying this is people are lost in here...

They certainly are...
but separate sub-forums will not solve that problem.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

i got it to work, but it only works 8 now = 0, but i want 9 to =1 and 10 to = 2 and so forth. so basically i want the array to go in a loop.

darkagn is correct. If you're using the mod operator correctly then that is exactly the behavior you should get.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Perhaps using a Sobel operator and using the gradient direction would help. "Internal" and "external" have little meaning to a map of pixel intensities. Those are rational designations of your own making that you have to quantify and qualify if you want your program to make any distinction between them.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Well, turingmachine completely ignored the question.

Just return an empty list

return new LinkedList<names>();

or you could also define an empty list class constant to use for that purpose

public final static LinkedList<names> EMPTY_LIST = new LinkedList<names>();

A couple of additional thoughts:
- Do you really need to return a LinkedList? It's usually better to use the interface List, so as not to nail yourself to using a particular list class.
- Why is "names" lowercase? Class names should begin with a capital.
- The EMPTY_LIST should probably be unmodifiable unless you explicitly expect callers to add data to that list, which is probably not a good idea anyway

public final static List<names> EMPTY_LIST = Collections.unmodifiableList(new LinkedList<names>());
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Yes, I was thinking the mods might prefer that as well. Currently we can only forward those as a personal PM. If a report mechanism could place those in a common area it would probably ease the burden on the mods' inboxes.

I'm not certain though if that is possible with personal messages as it is with forum posts.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Study the information found in the "Read Me: Starting Java" thread that is stickied at the top of this forum.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

i don't know weather it is involved in a network or not. how i should know wheather it is involved in a network or not.

If he's not on a network, how do you figure he's going to have an IP address? Do you know what an IP address is for?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

If you heard about JMF, did you look at Sun's website for it? Did you read any of the tutorials and examples that are there? Some initiative would go a long ways.

Alex Edwards commented: Spoon feed =) +4
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

>Every time that I've received one of these messages
>I've been unsure as to who I should forward the message.
Forward them to me and I'll either deal with them personally, or pass them on for discussion by the admins and mod team.

Ok, thanks for info on that. Previously I've just randomly picked one of the mods that I knew was online frequently during the times I'm usually online.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Having just forwarded yet another scam spam PM to a couple of mods, I was wondering if a mechanism like the "Flag Bad Post" option on forum posts would be useful on the PM interface. Every time that I've received one of these messages I've been unsure as to who I should forward the message.

(The current spammer is "marie20088", who is still online and at it, by the way)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

She has experience as a leader and an executive - what have Obama or Biden done other than be in Congress?

Much like McCain? You know, the one who is actually running for President?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Alex Edwards commented: Whoo! =) +4
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Spilling is most definitely a drinking problem.

(... a problem of having less to drink, obviously)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I am a drinker and have spilled drinks on others. Will I be punished?

Most definitely.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You are going to have to apply thresholding methods to determine that the photos meet whatever criteria you deem close enough to identical. You will most likely never get two different photos with the exact same pixel values in the exact same positions. The field of computer vision can get very complex quickly depending upon your expectations.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

How you compare the images is completely up to you. There are many techniques for image comparison and it depends on what you are trying to resolve from the two. All of them are going to use pixel values at some level of granularity.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

http://java.sun.com/j2se/1.4.2/docs/guide/imageio/spec/imageio_guideTOC.fm.html

("plss" and "thx" are not words. If you're too lazy to communicate properly, don't expect too much help.)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Yes.

VernonDozier commented: Couldn't have said it better myself. :) +6
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

God will punish smokers not for what they are doing to themselves, but for what they are doing to others.

Sure, and leprechauns will have their vengeance too, because they are really tired of ash falling on their heads. :-/

Are there any other dire warnings of retribution from make-believe land that we should be aware of?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Perhaps research how a complete lack of attention to written communication skills may impact a career.

jwenting commented: well said! +18
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Is this getting to recursive?

Virtual stack overflow.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

With a Timer.

Alex Edwards commented: Short, subtle and sufficient all at once! +4
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Give Apache POI a try.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Try System.getProperty("user.dir")

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

And the assignment even says sample implementations are available - talk about lazy...

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

try

try {
    // Create a URL for the desired page
    URL url = new URL("http://www.cinndev.com/testFile.txt");

    BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
    String str;
    while ((str = in.readLine()) != null) {
        System.out.println(str);
    }
    in.close();
} catch (MalformedURLException e) {
} catch (IOException e) {
}
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

My head hurts.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

If this is for your "email marketing campaign" (spamming), we're not going to show you how to scrape email addresses for your spam list.

jwenting commented: well said +18
sciwizeh commented: agreed +1
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Hi

I am new to MYSQL DB and i am a fresher

here i am having code which is perfectly run

and the only thing is i have stored the data in file but now i want to stored the file in DB

i mean i want to change file to mysql

how can i change it

can anyone help me

Regards
Kevin

Start with a basic tutorial on JDBC and do not repeatedly make posts about the same question.