jasimp 427 Senior Poster Featured Poster

...it can't be denied that knowing the basics of the language you develop in of prime importance.

It is important, that is why I agree that IDE's should not be used when first learning a language. But my point was certain IDE's can, if you truly want to learn, help you learn common method signatures, what commonly used methods do. They will only help beginners if the user actually types everything out themselves, instead of using code completion, code generation et cetera.

I am pretty sure none of us would want to hire someone who is completely lost without an IDE; after all, it's a Java developer we are looking for and not just a Eclipse/Netbeans/IntelliJ user.

Which is what happens when beginners are incorrectly taught to always use and IDE (which is why they should not use them), instead of using it when they are ready.

jasimp 427 Senior Poster Featured Poster

Using an IDE just because you don't or don't want to remember langauge syntax and API is totally useless,

While I do agree with your post in its entirety I think using certain IDE's, such as Eclipse, can be very useful in learning the API. In Eclipse, whenever you access a method, it gives you a summary of what the method does, as given in the API. This is a great opportunity to really explore the API.

jasimp 427 Senior Poster Featured Poster

Use a suitable tool for creating software. Use free IDE NetBeans.http://www.netbeans.org/downloads/

Uhh... how is this helpful?

I'm sure your book must show you examples of constructors, private methods and their uses. Anyways a private method is a method that can only be used in the containing class. They are generally called support methods because they are used only within the class.

If you do not provide a constructor, Java automatically uses a default constructor, which is a no argument constructor

//default constructor, no argument
public Complex(){
}

// a constructor that takes arguments
public Complex(double one, double two){

}

To go from there I'll need to know exactly what you are having trouble on, besides a vague, "private methods, constructors, and calling different classes."

jasimp 427 Senior Poster Featured Poster

i think before i do anything else, i need some sleep. 4.5 hrs of sleep a night for 2 nights isn't the best idea....

If you're sleeping polyphasically that could be to much sleep :)

jasimp 427 Senior Poster Featured Poster

I have this wierd kink in this program, it keeps telling me that there is a "missing return statement for public static question. i'm kind of new to JAVA and i've tried everything! please can someone help!

"missing return statement" is saying there is a way question() could run without ever coming across a return statement. It's hard to tell where it needs to go in that un-formatted code but seeing as you are using a switch statement you need to have it return something in the default case, or have it return something out of the switch statement. On another note, generally you put the default case at the bottom of all your other cases. It makes sense that way because default is saying, "if none of the other cases work, do this one." How does it know if the other cases work when you put default first?

jasimp 427 Senior Poster Featured Poster

to be honest i have my friend project but i don’t wanna copy it i want to understand the codes...so plz can u give me simple codes and where i should put it??

What is the difference between you copying your friends code and you copying something we give you?

jasimp 427 Senior Poster Featured Poster

Well how are we supposed to help you if we have no idea what your code is or what you need to help you "complete it"

jasimp 427 Senior Poster Featured Poster

If the incident is as you describe it, it sounds like clear cut self defense. But if it is, why are there these quotes from the Interior Minister?

Not how I described it, I was just quoting what I read.

jasimp 427 Senior Poster Featured Poster

As you may or may not know there is rioting in Greece due to the fatal shooting of a sixteen year old boy. He was shot in the process of "throwing a fuel-filled bomb at officers." I don't think the officer wanted to kill this kid, but think about it, you have a gun and someone is throwing a bomb at you, would you really not shoot them? It's ridiculous to think anyone wouldn't. I really hope this officer gets off on self-defense, if they even have such a thing in Greece. So what do you think, was it right for the officer to shoot him?

jasimp 427 Senior Poster Featured Poster

Don't let the haters get you down - your post was very useful to me, and I'm sure to others as well.

I'm sure that in the six months it has been since they created this thread, they have gotten over any negative comments.

jasimp 427 Senior Poster Featured Poster

1) Learn Java, do this by reading books/tutorials, taking a class, et cetera. Read the thread at the top of this forum, Starting java.
2) Start coming up with your idea. Do this by thinking or Google it, or do what Ezzaral suggested and search Daniweb for threads asking the same question.
3) Design the class structure and hierarchy using object oriented principals. Write everything out, don't hastily start coding. If you know the inner workings of your design step four will be much easier.
4) Start coding.

We generally will help with step 4, the rest should be done completely by you. That way you will gain a deeper understanding of your program.

jasimp 427 Senior Poster Featured Poster

>but concatenate this post above if anyone
>doesn't make a reply in this precise moment.
Why don't you just edit your post instead of keep replying to yourself?

To prove his point.

jasimp 427 Senior Poster Featured Poster

Welcome! Glad you could join us.

jasimp 427 Senior Poster Featured Poster

The Dark Knight, another great movie.

jasimp 427 Senior Poster Featured Poster

thx & lol :P yes it's funny, though I don't think I could live without music at all. I'm glad to see there's many others that share this feeling ;-)

Stevie Wonder said it best--"Music is a world within itself, it's a language we all understand."

~s.o.s~ commented: So true. +25
mrboolf commented: completely agree :-) great quote +2
jasimp 427 Senior Poster Featured Poster

Ads? Flash animations? Oh yeah... Firefox+NoScript+AdBlockPlus=solved problems :)

jasimp 427 Senior Poster Featured Poster

I would also find this a useful feature. It would also allow easier searching for newcomers, seeking an answer. If they (or we) could easily search the code snippet library, it would make answering question much easier.

jasimp 427 Senior Poster Featured Poster

And I want a billion dollars :-/

stephen84s commented: Excellent response +3
jasimp 427 Senior Poster Featured Poster

What have you done on this problem? Show us some effort and maybe you will receive help. Also, try google.

jasimp 427 Senior Poster Featured Poster

P.S. If you post your code in more readable state next time, you get the answer much faster :)

If you notice the OP did try to use code tags, just made a little mistake on the second one.

jasimp 427 Senior Poster Featured Poster

Or better, donate / become a mod and then all the ads go away and you feel all nice and happy

So becoming a mod is just like donating now, one click away ;)

jasimp 427 Senior Poster Featured Poster

Read this for help with access modifiers. Or just Google it. It's a very common question

jasimp 427 Senior Poster Featured Poster

I like the look, but where has the Techies Lounge gone?

I probably cannot see it for looking :)

All the tech lounges are in one large lounge now, in the community center, under IT Professional's Lounge.

Lookin good Dani. I like it quite a bit.

jasimp 427 Senior Poster Featured Poster

kindly please help to solve my problem???
create a program that the user allow to input a 5 integers, that looking the lowest value?

Create your own thread and show effort. No one is going to do your work for you.

jasimp 427 Senior Poster Featured Poster

Great, I have drive-by code snippets, drive-by flu shots, I think I'm set for life ;)

jasimp 427 Senior Poster Featured Poster

I'm sorry but are you asking for help? If not, congratulations on getting your beep method to work. If you are asking for help, what is your question?

jasimp 427 Senior Poster Featured Poster

What you need to do is mark the thread as solved, so people don't read the whole thing to realize it has been solved. Just for future (and present) reference. Thanks :)

jasimp 427 Senior Poster Featured Poster

and also just to make sure you aren't running client and server on the same machine are you?

I have never had trouble running a server and client on the same machine before, but I haven't looked through the code here to see if they are doing anything different than I usually do. However in an earlier post the OP posted

it reads information:
"
POST / HTTP/1.1
Connection: close
Keep-Alive: 300
User-Agent: Java/1.6.0_07
Host: localhost:2604
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Content-type: application/x-www-form-urlencoded
Content-Length: 38

Looking at where it says Host: localhost:2604 led me to believe it is being run on the same machine.

jasimp 427 Senior Poster Featured Poster

You can try like this

Buffered reader tast=new BufferedReader( new InputStreamreader(System.in));
     String age="";
     age=tast.readLine();
     intage=Integer.parseInt(age);

They already have that. If you actually read the thread they were having trouble with an exception.

jasimp 427 Senior Poster Featured Poster
e.printStackTrace()

is used for "tracing" where your exception occurred. It is useful to the programmer for debugging, but useless to the end user. Try validating your input before you parse it to an integer. If you catch that exception you get from

intage=Integer.parseInt(age);

you can handle it accordingly.

jasimp 427 Senior Poster Featured Poster

This is the modified code.
It is not working properly.
Please look into it.

That's really not enough information to go by. What specifically isn't working? I'm not seeing any compilation issues so whatever isn't working is most likely a logic error.

jasimp 427 Senior Poster Featured Poster

Try going through the Scanner class. That should be sufficient for your purpose.

jasimp 427 Senior Poster Featured Poster

I'm going to assume you had to create a class called Year, because otherwise you would have used the built-in GregorianCalender class that has a method isLeapYear(int year) :)

What I would do is get the input using the YearApp class and pass that input into the parameter of your isLeapYear method.

jasimp 427 Senior Poster Featured Poster

You wouldn't buy a watch from a guy on the street without thinking about the implications,

Which is why I would prefer to know all about the "dark side"

jasimp 427 Senior Poster Featured Poster

Just put

int menu = keyboard.nextInt();

in the while loop. It will continue asking for input until menu is equal to 99, or

break;

is called.

jasimp 427 Senior Poster Featured Poster

Take Google, Microsoft, your government, and your local Pawn-Shop as what they are. A useful tool that has a dark-side you don't want to hear about.

I would rather know everything about this "dark side" so I can combat it.

jasimp 427 Senior Poster Featured Poster

Hi sudon hw are u? I got a sol for ur prob,u can use web languages like html,jsp etc.further u can refer to a book named "WEB ENABLED COMMERCIAL APPLICATIONS"
author is:IVAN BAYROSS..............and if u know sol for my problemthen plz rply friend or if u know any expert who cn help us,then plz give his contact to me..........

I'm sorry, what language is that?

jasimp 427 Senior Poster Featured Poster

Easiest way to do what? You haven't told us what you need help on (besides the vague "I want to add some more features"), we have no clue where your at with implementing these "new features" and we don't even know if what you have done works! You state, "I have tried this with rmi," tried what, and did it work? I'm sorry my mind reading capabilities only extends to those with the brainpower capabilities to facilitate the mind reading reading, four year olds.

Alex Edwards commented: You're too try-hard =P +4
jasimp 427 Senior Poster Featured Poster

I understand what you want to tell. Waiting a valid input file may be a good choice.
But, if I don't want to give that right to the user, I mean user has to enter a valid filename at his first choice,else the program has to be terminated. In my program, the absence of that file corrupts program running,that's too, I regard it as RuntimeException and treat it like that. I am asking what else may be done,because Java books suggest not to use exit statement in exceptions.

Peter already said what to do. He said do not exit the program, provide a helpful message to the user and then go back "to the point the file name been submitted for new entry".

jasimp 427 Senior Poster Featured Poster

Hello, I need help!!! Very new to programming.
I need a program that will display...

You already have a thread dedicated to this same exact question here, with quite a few responses.

jasimp 427 Senior Poster Featured Poster

why try to figure out how to fly, if you can walk? just use two for loops as javaAddict suggested

Because according to the OP, he was supposed to use a method called printBlock, and have a user supply the parameters. All you need inside the method are those two loops.

jasimp 427 Senior Poster Featured Poster

Two for-loops

I'm assuming you mean inside the method he has to create (just clearing it up because I was confused at first)

To jayjaysam0441:

I don't think you need seven methods; three calls on the same method, with different parameters should be fine.

public void printBlock(String character, int columns, int rows){
//for loops here

}


printBlock("C",3,10);
printBlock("C",3,3);
printBlock('"C",3,10);

I'm assuming you know how to receive user input but in case you don't. BufferedReader class

To recieve input from the command line I always use

//creates the object to read from the console
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

//takes whatever is typed in AKA the character you want printed 
//don't mind the try statement if you haven't been taught that yet

try{
String line = reader.readLine();
}catch(Exception e){}
jasimp 427 Senior Poster Featured Poster

sounds cold and chilly

My favorite. I have always loved winter, especially snow; even the shoveling.

jasimp 427 Senior Poster Featured Poster

I'll supply the tinfoil for a hat making party ;)

Alex Edwards commented: XP +4
jasimp 427 Senior Poster Featured Poster

Login required; no reason to waste your time with this.

Because there is a login it is a waste of time? Does that mean Daniweb is a waste of time too?

jasimp 427 Senior Poster Featured Poster

Google is worse than M$

when google becomes the new MS (when the fat client OS is redundant) and apple becomes the evil purveyors of DRM, we will wish we had not been so mean to microsoft.

So true. There are only two things Google is useful for; Gmail (and anyone who actually uses Gmail for confidential stuff is ignorant of the inherent danger) and its search engine.

jasimp 427 Senior Poster Featured Poster

I haven't tried it but there appears to be a function to remove an entire page at a time of notifications (instead of just one thread at a time). If you click the bolded notification button shown in the first screen it selects all the ones on the page. Then go to the bottom (shown in the second). Selecting "no email notification" should stop the emails for all the threads on that page.

jasimp 427 Senior Poster Featured Poster

You should organize your topic subscription more often, anything what is older then 1-2 weeks is past with me...

Or just remove all email notification like me. My Control Panel tells me what threads have been updated, why bother having me email tell me too.

jasimp 427 Senior Poster Featured Poster

Tabs? Why wouldn't that work?

jasimp 427 Senior Poster Featured Poster

Just create a new color using your values. I added the line of code into your try statement.

try
         {
         red = Integer.parseInt(redText.getText());
         green = Integer.parseInt(greenText.getText());
         blue = Integer.parseInt(blueText.getText());
         if(red > 255 || red < 0 || green > 255 || green < 0 || blue > 255 || blue < 0)
        {
          JOptionPane.showMessageDialog(null, "Please enter a number between 0 and 255!");
          redText.setText("0");
          blueText.setText("0");
          greenText.setText("0");
        }
         else
         {
                 //creates a new color using the values inputed by the user
        	 Color colorTest = new Color(red,green,blue);
          color = "" + red + green + blue;
          JOptionPane.showMessageDialog(null, color);
          //sets the color to the one created from user inputted values
          centerPanel.setBackground(colorTest);
         
         }
         
        }