4,084 Posted Topics
Re: this is very little information to go on. Can you provide us with some of your actual code and config files? | |
Re: "even without a package declaration", I assume you meant "even without an import statement" there? | |
Re: int numofwrkrs = 0; ... for (i = 1; i < numofwrkrs; i++) i < numofwrkrs will never return true, so the content of the for block is never executed. Is that what you mean? | |
Re: hari: without seeing any of your code, all we can do is guess what might be wrong. Further more, for questions regarding jsp issues, the [JSP-forum](https://www.daniweb.com/web-development/jsp/24) is more suited. | |
Re: explanation about what, exactly? what is it you don't understand? | |
Re: small modules are easier to debug compared to classes having methods with thousands of lines of code each. Some sort of documentation is appreciated. Follow decent naming conventions, whether the usual or those in your company, just don't use others in each class. Choose variable names that are readable and … | |
Re: if you are "programming in Java for the first time" and are smart, you don't. first learn the language, the syntax and how stacktraces and the api's can be used to your advantage. just blindly typing code you don't really understand will lead to countless hours of debugging you could've … | |
Re: please don't start two threads with the identical same question. | |
Re: You'll need an instance of the one class in the other (or some other relation through which they can pass data) and pass it as a parameter to a method, or use a getter. | |
Re: traffic doesn't visit your blog because you advertize it, they visit your blog because they know/heard/found out that you wrote insightfull articles about either various topics, or are specialized in something they are interested in. | |
Re: most of this code is NetBeans generated UI code. The rest of the code is mostly very simple, and unefficiently written conditional statements. Maybe you should ask the person who wrote the code, or just read it. the stuff that isn't generated (that you should look at to understand it) … | |
Re: the error message itself is usually pointless. for all you know, some funny guy had code like this: try{ // code throwing whatever Exceptions } catch(AnyException aE){ throw new Exception("This message is pointless"); } catch(Exception e){ throw new Exception("Huh ... didn't see this one coming"); } Sure, you can print … | |
Re: what is the bandwith? how many clients are there? is it a dedicated or a shared server? tons of stuff that might cause tardiness. | |
Re: you compared it to every class in the JRE? it doesn't even need to be that class. I remember a guy having created his own String class, and later on not understanding why `public static void main(String[] args){` was compilable, yet not usable as an entry point for the application. | |
Re: You can use a switch statement instead of if statements, but you'll need someway to evaluate conditions. | |
Re: catch(Exception e){ } code like that is always bad. have you debugged the code? are you trying to update an existing line? `String sql = "UPDATE DataImput SET SubjectName='"+te1+"' ,VATnumber='"+te3+"' ,Service='"+te5+"' ,Price='"+te2+"' ,Totalamount='"+te4+"' WHERE Invoicenumber='"+te6+"'";` if there is no row with invoicenumber equal to the value of te6, that would … | |
Re: what do you mean: wrong? If it compiles and runs, there's nothing wrong with the code, just with the logic. can you be more specific as to what the exact result is you expect, compared to what you get? | |
Re: define "equations". What do you see as an equation? 1 + 3 + 4 - 1 / 2 = ? or "1 + 3 + 4 - 1 / 2 = " ? | |
Re: this.dispose(); right after the code to open and show the second JFrame should do the trick. | |
Re: 'l' is for a char, most likely, code is a String and you'll need: `if ( code.equals("L") || code.equals("l") )` which, in case of String comparison, can be changed by: `if ( code.equalsIgnoreCase("L") )` if code is a char, on the other hand, you may want to use: `if ( … | |
Re: it's a simple manipulation of a String object. "D" + a substring of the original String, found like this: http://docs.oracle.com/javase/7/docs/api/java/lang/String.html#substring(int) | |
Re: so: this is the entry point of your project? public class SmallCalcApp { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here } } consider your project as a teenager: no matter what it is (s)he is capable … | |
Re: you have used jdk 7 and now you are using netbeans 8.0.1. Netbeans is not a separate version of Java. What version of Java are you using? How do you want to connect to the db's? which framework are you planning to use? JPA, hibernate, jdbc? with just googling a … | |
Re: sure it is. through e-mail, you can upate people on 'new features' on your site, new items in your shop, ... a lot depends on your tone, on the speed in which you send (new) mails, on the contents of your mail and on who you send those mails to. … | |
Re: please don't (try to) use these fora to commit plagiarism. The point of a thesis is that you write it yourself, so your professor can check you know and understand the material. | |
Re: most likely, the best language for you to use, is the language you know well enough to program in. if you don't know Java, I wouldn't recommend trying to do this in Java, since this is going towards advanced material. if you try in vb.net, and get a lot of … | |
Re: No, we can't solve "this problem", since this is not a problem, it's an assignment. go over your course notes, and check what concepts you 'll need to use. Have you seen inheritance yet? if so, you'll probably need to show it off. You'll need to use conditional statements, either … | |
Re: Or, if you meant the reference type Void, [this](http://stackoverflow.com/questions/643906/uses-for-the-java-void-reference-type) might be a good read. | |
Re: your title is "Search is not working", then you say "This is the code I work to search. it actually work." Either it works, or it doesn't. "It show the item I want" => isn't that what your code is supposed to do? and how do you mean "the last … | |
Re: >How can we promote ebook on social media ... Is it an ebook on/about social media, or do you want to promote it on social media? >how we can reach target audience and particular reigion. What is your target audience (how is it defined)? Did you mean particular "religion" or … | |
Re: which jar file did you add? Are you using Java 8? as of Java 8, the JDBC-ODBC bridge is not longer part of Java, which could lead to that error. | |
Re: add an else block, see if `if ( rs.next()) ` actually returns true. Also, check the value of variable Table_click1 . For all we know your query just doesn't return any results. Just a few more recommendations: catch(Exception e){ } avoid doing this: at least log the error. Start following … | |
Re: The JDBC-ODBC Bridge has been removed from Java 8, so you won't be able to directly use it any longer. Maybe this [SO Thread](http://stackoverflow.com/questions/21955256/manipulating-an-access-database-from-java-without-odbc) on the matter can help you continue your work. | |
Re: or did you decide on "going the whole way" immediately? Videoconferencing is easily a project that an entire team of analysts/developers/testers spend months on, not something to write while learning to program. If you do choose to start with it, start with a decent analysis. It will prevent numerous hours … | |
Re: so, you want us to provide you with the code you'll present as your project at college? does the word plagiarism ring any bells? | |
Re: Kishore_5 : this is an unrelated matter to an old thread. Please don't hijack threads, but start your own. | |
Re: asif: you are looking for people with goals that are equal to your own, but you are way too vague about what your goals are. be more specific: a person with great skills will be worth a fortune working on revolutionairy product A, yet useless on revolutionary product B, because … | |
Re: And you want this in .java ? remember that any Java application is running inside a JVM and has little to no influence on what happens outside of that VM. | |
Re: if you want traffic, make sure your site has value and promote it. a lot of people are only annoyed by adds they see on pages for unrelated sites, so whether it really is worth paying a lot for those... Even then, no matter how many people visit your page: … | |
Re: also: what browser are you running it on. if you're using a new version of Chrome, for instance, it might be that applets are not longer supported. | |
Re: what is "the error" ? And what have you done? are you using a tomcat instance embedded in an IDE, how did you deploy your app to your tomcat, did you get a stacktrace when the tomcat started up, are there any logs, ... ? | |
Re: it is giving me errors ... Personally, I'm surprised about that, seeing that you have code like: catch (Exception e) { } at least three times. Can you please be more specific as to what errors you encounter? compile time? run time? wrong output? | |
Re: When it comes to questions regarding jsp applications, the [JSP forum](https://www.daniweb.com/web-development/jsp/24) might be a better option. | |
Re: without seeing any code, or any error message/stacktrace, bit hard for us to tell. If your deadline is tomorrow, well ... remember this next time: trying to get it done last minute usually blows up in your face. Most likely, there's something wrong or missing in your code, but we … | |
Re: well... that code won't cause any trouble, not in Java7, not in Java8 ... I'm not exactly sure what is going wrong on your machine, but it looks like there is something wrong with your (class)path. It can't find the JComponent class, which might cause some issues (since it's the … | |
Re: sclansing68: So far you have posted your assignment. Do you have any specific questions about them? If you want us to provide you with custom made code for this: we won't. It's a quite easy assignment, and it is meant to teach you how to start writing your own code, … | |
Re: "a media player in Java by using Netbeans". Quite a lousy assignment. what types of media is it supposed to support? why must it be in Netbeans? what about it is giving you "a hard time", and, also quite important: what have you tried so far? Also: is there a … | |
Re: what exactly is the point of this: for(int i=0;i<users.size();i++){ if(users.get(i).getName().equals(user.getName()) || users.get(i).getUsername().equals(user.getUsername()) || users.get(i).getContactNo().equals(user.getContactNo())) System.out.println("User exists!"); else System.out.println("Thank you for registering "+regName+"!"); } users.add(user); the user is added, no matter whether it already exists or not. Also: use the equals method of User to check this, don't go write it … | |
Re: and you want us to answer based on the code you've shown so far? as Freddie Mercury once said "It's a kind of magic .... " You are being very vague on what it is you are trying to do. What values need to be stored? (it is not entering … |
The End.