4,084 Posted Topics

Member Avatar for samantha2015

this is very little information to go on. Can you provide us with some of your actual code and config files?

Member Avatar for stultuske
0
177
Member Avatar for Mysquldata

"even without a package declaration", I assume you meant "even without an import statement" there?

Member Avatar for jwenting
0
116
Member Avatar for divinity02

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?

Member Avatar for divinity02
0
193
Member Avatar for hari_10

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.

Member Avatar for stultuske
0
114
Member Avatar for gtel
Member Avatar for JamesCherrill
0
153
Member Avatar for Ajay Negi

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 …

Member Avatar for stultuske
0
235
Member Avatar for Rashee

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 …

Member Avatar for stultuske
0
284
Member Avatar for Ojaswi_1
Member Avatar for Taywin
0
256
Member Avatar for Stefce

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.

Member Avatar for Stefce
0
255
Member Avatar for Dianne Watts

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.

Member Avatar for akshv
0
307
Member Avatar for hadisur_rahman

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) …

Member Avatar for stultuske
0
326
Member Avatar for newcoder310

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 …

Member Avatar for JamesCherrill
0
2K
Member Avatar for centenond

what is the bandwith? how many clients are there? is it a dedicated or a shared server? tons of stuff that might cause tardiness.

Member Avatar for centenond
0
304
Member Avatar for newcoder310

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.

Member Avatar for peter_budo
0
265
Member Avatar for samantha2015

You can use a switch statement instead of if statements, but you'll need someway to evaluate conditions.

Member Avatar for samantha2015
0
2K
Member Avatar for altjen

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 …

Member Avatar for stultuske
0
921
Member Avatar for divinity02

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?

Member Avatar for JamesCherrill
0
203
Member Avatar for DeanMSands3

define "equations". What do you see as an equation? 1 + 3 + 4 - 1 / 2 = ? or "1 + 3 + 4 - 1 / 2 = " ?

Member Avatar for DeanMSands3
0
2K
Member Avatar for Saboor880

this.dispose(); right after the code to open and show the second JFrame should do the trick.

Member Avatar for peter_budo
0
248
Member Avatar for divinity02

'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 ( …

Member Avatar for Stephen_8
0
148
Member Avatar for altjen

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)

Member Avatar for altjen
0
253
Member Avatar for Saboor880

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 …

Member Avatar for stultuske
0
353
Member Avatar for Saboor880

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 …

Member Avatar for stultuske
0
94
Member Avatar for khairbabu61

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. …

Member Avatar for cwvps
0
266
Member Avatar for _ibyang13

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.

Member Avatar for jkon
0
118
Member Avatar for kings400

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 …

Member Avatar for stultuske
0
247
Member Avatar for Alex_33

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 …

Member Avatar for stultuske
0
97
Member Avatar for Parvathiapril8
Re: Void

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.

Member Avatar for JamesCherrill
0
242
Member Avatar for altjen

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 …

Member Avatar for stultuske
0
145
Member Avatar for connecticut472

>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 …

Member Avatar for Vincentas
0
285
Member Avatar for hwoarang69

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.

Member Avatar for ~s.o.s~
0
662
Member Avatar for altjen

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 …

Member Avatar for stultuske
0
170
Member Avatar for hwoarang69

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.

Member Avatar for hwoarang69
0
922
Member Avatar for Kate_2
Member Avatar for JamesCherrill
0
72
Member Avatar for Aditya0025

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 …

Member Avatar for jwenting
0
189
Member Avatar for mike chibundi

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?

Member Avatar for JamesCherrill
0
338
Member Avatar for 47pirates

Kishore_5 : this is an unrelated matter to an old thread. Please don't hijack threads, but start your own.

Member Avatar for stultuske
0
1K
Member Avatar for asif49

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 …

Member Avatar for weitau
0
7K
Member Avatar for Mr.M

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.

Member Avatar for Mr.M
0
112
Member Avatar for IT tech_1

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: …

Member Avatar for advent_geek
-1
115
Member Avatar for ilovearsenal

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.

Member Avatar for stultuske
0
144
Member Avatar for 100hil

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, ... ?

Member Avatar for stultuske
0
55
Member Avatar for hermela_1

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?

Member Avatar for stultuske
0
1K
Member Avatar for Kert

When it comes to questions regarding jsp applications, the [JSP forum](https://www.daniweb.com/web-development/jsp/24) might be a better option.

Member Avatar for stultuske
0
1K
Member Avatar for hermela_1

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 …

Member Avatar for JamesCherrill
0
970
Member Avatar for sirlink99

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 …

Member Avatar for JamesCherrill
0
1K
Member Avatar for sclansing68

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, …

Member Avatar for JamesCherrill
0
273
Member Avatar for shailamureed

"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 …

Member Avatar for JamesCherrill
0
392
Member Avatar for laguardian

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 …

Member Avatar for laguardian
0
377
Member Avatar for muskan.upadhyay.355

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 …

Member Avatar for stultuske
0
120

The End.