4,084 Posted Topics
Re: ehm ... best way to start: write the analysis. have it validated, make sure it makes sense not just to you, but also to those who'll use it. check whether they have additional wishes, if so, see if you can add them. check your analysis, and gather the necessary material … | |
Re: public void worldCine(); { System.out.println("Ticket rate:" +t); } you should not have a ; right behind the method definition. | |
Re: ehm ... where do you get the idea this code is valid? "a" and "b" are Strings, not instances of MyInterface, so this won't work. what would be valid, though, is: `MyInterface[] myInterface = new MyInterface[]{new MyInterface(){}, new MyInterface(){}};` here, it seems that you are instantiating the interface, but actually, … | |
Re: Is this the same assignment as in your other thread? here as well, what exactly is your problem? I do see this block, which is pretty useless for (index = name.length - 1; index >= 0; index--) { } | |
Re: if(EmployeeName.toLowerCase().equals("stop")) { end = true; } replace this by: `end = EmployeeName.toLowerCase().equals("stop");` you should indent your code more properly, and re-think all the opening and closing brackets. if(EmployeeName.toLowerCase().equals("stop")) { end = true; } { // -> this makes little sense to me. also, try and follow naming conventions, it 'll … | |
Re: titus.k.s: you can't "compile jar to exe". not to mention the fact, that if you want an exe, you shouldn't have written your application in java in the first place. a failing connection to your database has nothing to do with running it from a jar or whatever, but by … | |
Re: titus.k.s: a few steps towards resolving your issue: 1. being directed to the api of JPassWordField ([here](http://docs.oracle.com/javase/7/docs/api/javax/swing/JPasswordField.html)) 2. reading the .getText description: ([here](http://docs.oracle.com/javase/7/docs/api/javax/swing/JPasswordField.html#getText(int,%20int))) and reading this part: > Deprecated. As of Java 2 platform v1.2, replaced by getPassword. > Fetches a portion of the text represented by the component. Returns … | |
Re: either adapt your code, or use it as is. it's a warning, not an error. | |
Re: you should delete your code and start learn the basics. first of all: for this, you don't need to do anything, it's a warning, not an error message. secondly, in the other posts you've made on the forum, you've made it clear you don't have sufficient knowledge of the basics … | |
Re: titus.k.s if you don't know that, you shouldn't bother to work with Swing GUI's and start learning the basics of OO design and Java. for some reason, you've asked about this "all over the forum" but, just to indulge you one last time: String sql = "Select * from tbkaryawan … | |
Re: ehm ... not? just use the one that exists. but if you are talking about a persistence layer, I would recommend using JPA or hibernate rather than JDBC. | |
Re: better would be to ask: what 's the use of this? a 'social network' is supposed to 'bring people together, no matter the distance between them', not 'keep it Australian only'. any social network will need to generate some kind of income, being it by asking a monthly fee to … | |
Re: The way I understood it, he wants to create a compiler of his own, which may not be something you want to put a (near) deadline for one person. | |
Re: surya: this is like asking, why should your parents have had children, since they were there already? the childclasses don't just inherit the code from the parent class, they are able to add to it, to update it, or to modify it to adjust to a new situation, without changing … | |
Re: head first servlets and jsp. the ide you (are going to) use, is not relevant. | |
Re: [this](https://blogs.oracle.com/javajungle/entry/secure_email_from_java) post on the Oracle blogs might shed some light on it | |
Re: how are you showing a message? in a command prompt? then maybe it is shown, but overwritten by later information. you give way too little information for us to base ourselves on. you're also being pretty vague in what exactly you are trying to achieve, so you may want to … | |
Re: also, what you'll encounter a lot of times when working on big projects. the tasks are being split up. the ui is done by seperate people as the back-end, and the analysis, well, God knows who might be doing all of that. let's say, you have to write the UI. … | |
Re: Taywin, I'm afraid you're missing the problem. he is trying to define a method within a method, which is not allowed in Java. move your calculcate method out of the main method and call the method while passing the correct parameters. | |
Re: [This](http://lmgtfy.com/?q=where+i+can+download+a+javax.speech.*) should lead you to the right place in no time | |
Re: overriding, no, since there is no inheritance, overloading, yes, polymorphism ... well, overloading is considered to be "static polymorphism" so ... I guess, yes, but it's not something like dynamic polymorphism, which can be achieved through extending a class or implementing an interface. | |
Re: sure, jsp is still widely used. of course, usually together with other techniques and frameworks, such as spring mvc, ... anyway, about your textbook, jsp isn't the newest kid on the block, so to say, and most (if not everything) in that book 'll still be valid information. but that's … | |
Re: Nancy: this should have gone into a new thread. this question also is repeated every few days, which means you'll already find a lot of threads where this question is answered. you may want to go through those first. | |
Re: > post interesting and sassy content which can compel user to like it. Participate in the community, share others content/post too. Take a part in the discussion at different communities and mention your page there. > sure but i have used these methods...but result is nothing well, this is easier … | |
Re: and you have a strange way to look at things. just because a company you might go to work for becomes obsolete in the future, doesn't mean it can't be a very good experience that 'll boost your carreer thousandfold another job could do. yes, you will probably be forced … | |
Re: I can't speak for the OP, of course, but even though I wouldn't recommend using an Access DB, I do know of some reasons that may cause people to think twice before migrating (then again, those people should 've thought twice about the design of the db in the first … | |
Re: if it prints something like this: om.Student.NewStudent@49cda7e7 that just means you didn't override the toString method, so it uses the default one provided by the Object class. add public String toString(){ return this.name; } to the NewStudent class it's being printed in a list, because you don't print each element, … | |
Re: you also may want to post a bit more code that you're running there. a lot of people think that if they do: try{ Runtime r = Runtime.getRuntim(); Process pr = r.exec(cmdString); } catch(Exception e){ } and no stack trace is being printed, that signifies that no exception was thrown, … | |
Re: The main problem you'll be having can be concluded from these two sentences of your post: > I want to wirte the program using java. > But my java skills are limited. first of all, you would need to get a (basic) sms application to work, which is, most likely, … | |
Re: you're not supposed to run it from a svn repository, you keep your code there, so in case something goes wrong, you can revert back to a former version of the code. it's also to make things easier if you work on a group project, so that everybody has immediate … | |
Re: "look like global variables" even though static variables might look similar to global variables, there are no such things as global variables in Java. | |
Re: I mostly debug in SpringSource (which is Eclipse based) so I'm just speaking about Eclipse and SpringSource here. you can start debugging, jumpt to the next executed line, to the next executed line in the same class, to the next line you run over which has a breakpoint on it, … | |
Re: ParPau: if you are a "newbie" in Java, then start at the beginning. by copy-pasting code, you'll learn nothing except for just that: copy-pasting. | |
Re: not to mention, I don't see any problems with the case sensitivity in his code. checking the closing brackets, as Taywin mentioned, 'll do the job. | |
Re: proper indentation would make your code a lot more readable. for someone who just started to read this, it might look as if that first if statement has 5 else blocks attached to it. also, use brackets `{ }` even thoug when your code is only one line, it's not … | |
Re: the way I see it, that would be the kind of application an entire company would work on for (at least) a year, and then the next years on maitenance and improvements. [Atlassian](https://www.atlassian.com/) offers a number of good tools you can use, but the way you describe it: [Sonar](http://www.sonarsource.com/) might … | |
Re: Harshit686 : did you happen to notice that this thread is 6 years old and far from active? don't disturb the dead. read their headstones (the previous posts) for some info but don't let a number of zombie threads take over the forum. that been said: if you want code, … | |
Re: either that, or, remove the try and catch block alltogether, and add a `throws WrongException` to your method signature. I am by far a fan of having a main method throwing Exceptions, but it 'll give the same result as any other method that doesn't use exception handling, but delegates … | |
Re: I'm not entirely clear on what you are trying to do. can you elaborate a bit on it, please? | |
Re: tons of way. depends on the version of Java you are using, the type of audio file you want to play, whether we are talking about background music or sound-effects, ... | |
Re: Hai ... No. this is not developers for hire. when you registered on this forum, you've agreed to certain [rules](http://www.daniweb.com/community/rules). I suggest you read those (again, if need be). | |
Re: you are using some variables that I don't see declared or initialized anywhere, so I'll doubt this code 'll even compile | |
Re: a plugin for what, exactly? | |
Re: indeed. same signature, same name ... I can't think of a single reason why the code shouldn't compile. | |
Re: [QUOTE=stokes1900;1375203]first try to develop simple program that you have done another language. then try to solve more complex problem.take help from online tutorial. roseindia.net is best place for learning java byself[/QUOTE] you might want to read the post previous to your own | |
Re: [This](http://docs.oracle.com/javase/specs/jls/se7/html/jls-11.html) might be a good read. There's a lot more to Exceptions then you seem to think. especially check this part: 11.2. Compile-Time Checking of Exceptions | |
Re: Head First Design Patterns is worth a look. | |
Re: it looks like that bit has been thoroughly explained right [here](http://stackoverflow.com/questions/19851462/regular-expression-in-java-pattern-compile-j-d0-35-9-d-d-d-d) | |
Re: moaz.amin.37 you are the one who brought up the variable g. just check your initial post: `public void paint(Graphics g)` | |
Re: so, what are the compiler errors you get? usually, the stacktrace tells you exactly what is going wrong. |
The End.