4,084 Posted Topics
Re: and, to avoid getting 'weird' results, don't forget to override the toString method in your Pet class. | |
Re: Dynamix1022: Welcome to Daniweb. Unfortunately, you must have missed the community rules (to which you agreed on registering here). Allow me to remind you to a part of them: >Keep It Organized >Do read the forum description to ensure it is is relevant for your posting >Do provide evidence of … | |
Re: What exactly is it you are looking for? How to connect to any database through Java? How to use a database written in Java? How to create a database in Java? ... | |
Re: don't do this. sure, they "work" for a short while, until people figure out you pay for likes, and they'll ignore the likes and see the page for what it is: nothing much without the likes. besides that: google (and probably not just google) kind of started a little 'war' … | |
Re: Personally, I see no reason why you would need a jdbcDriver for this. Might be because I'm not familiar with .arff files, but doubt it. first thing to change: catch(Exception e){ } print the stacktrace, don't hide any exceptions thrown. secondly, find the JDBC.idbDriver, and add it to your classpath | |
Re: Firstly, do realize you are posting in the JAVA (not C++) forum. Secondly: do you have an actual question to go with this post? If your question is in the line of "gimme the code", the answer would be: no. This forum is visited by thousands of programmers over the … | |
Re: learning about them would be a good first step. 'Head First Servlets & JSP' (even though not the most up to date work) is still a good place to start. Once you've started with them, and have more specific questions, [this subforum](https://www.daniweb.com/web-development/jsp/24) might be better suited for your questions. I … | |
Re: >Therefore, can i say this is not identical since they are still two different objects? no. equality has nothing to do with the name of the variable. for instance: String a = "hello"; String b = "hello"; Now, you would think that there are two different Strings. Actually, there are … | |
Re: A few remarks: for questions about webapps, [this subforum](https://www.daniweb.com/web-development/jsp/24) is more the place to post. If you are still using J2EE, it would be time to upgrade. J2EE became obsolete early 2006. Go for an up to date version of Java EE instead. There is no specific reason why you … | |
Re: I can speak about a hundred languages. unfortunately, nobody seems to understand what I'm saying when I do :p on a bit more serious note: Dutch French German English are the ones I speak best (not every language as well as the other, since what are the odds you use … ![]() | |
Re: just a thought: you can easily minimize some of that code. less code => easier to read => easier to maintain. switch(color){ case 1: g.setColor( Color.GRAY); break; case 2: g.setColor( Color.PINK); break; case 3: g.setColor( Color.LIGHT_GRAY); break; case 4: g.setColor( Color.DARK_GRAY); break; case 5: g.setColor( Color.BLUE); break; case 6: g.setColor( … | |
Re: If you hand this code in, you will fail for sure. Start with the uml representation: The nouns in your assignment are variables/objects. It's up to you to see from the uml which one are classes, and which ones are instance variables. The verbs in your assignment represent the methods … | |
Re: Indianboi: by reading it as a String and using the split method. Check the [String api](http://docs.oracle.com/javase/7/docs/api/java/lang/String.html) for the [split method](http://docs.oracle.com/javase/7/docs/api/java/lang/String.html#split(java.lang.String)). For future reference, please don't revive dead threads. This thread is over five years old, if you have a new question, ask it in a new Thread. | |
Re: >I recently started a web/software based business. This is a very vague description of what you are doing. Are you writing software? Are you re-selling it? are you hosting it? ... ? So, we know nothing about what you do, but you want us to recommend you on how to … | |
Re: That is a nice assignment to learn to work with Exceptions. Thank you for sharing it with the community. If, however, your point was to attempt to convince us to write it for you, I'm afraid you will be dissapointed. Do take a look at the [community rules](https://www.daniweb.com/community/rules) which you … | |
Re: What you are doing wrong, is not understanding the basics first. `login login = new login();` Right there is your problem. Naming conventions, which tell you it should have been: `Login login = new Login();` (which also would have solved your issue) aside: the JVM thinks you are calling it … | |
![]() | Re: You have code like this: `catch(IOException ieeo){ }` and you expect us to go and debug it? ![]() |
Re: firstly, for digit, you don't need an array. and if you do use an array (or any other variable) don't initialize it within the while block. if it never runs, the variable won't be initialized, and thus not recognized. anyway, your approach is a bit over the top. an easier … | |
Re: replace this: CircleClass circleClass = new CircleClass(); Circle circle = circleClass.new Circle(radius); by this: `Circle circle = new Circle(radius);` | |
Re: "I am getting error" ... do you think you can be a bit more specific on that part? | |
Re: There are decompilers "out there", but whether they provide a correct answer, is a different matter. Most of them support Java up until Java 5 or Java 6. While there were several huge changes in the language itself, the decompiler may no longer be able to interpret them right. If … | |
Re: for the delay you can implement a thread that sleeps each time after changing the value before re-changing it, or a Timer. what exactly have you tried? | |
Re: Sudhakar_1: don't put the description of an issue in one Thread, and the code in another. >Hi. >The Timer displayed is 1 hr (HH:MM:SS) in decrement order. I have to display a pop out when 50 mints complete after that remaining 10 mints one pop up should display saying 10 … | |
Re: Read my reply in your [other Thread](https://www.daniweb.com/software-development/java/threads/492792/timer-issue-code). | |
Re: so, what exactly is it you are having difficulties with? | |
Re: what IDE or DB you use are not really relevant. How new are you to Java? Unless you already have a good solid knowledge of basic Java, I recommend not to start with webapps. Basically, what you are asking is whether a datafile can be saved in a database ... … | |
Re: a next problem, is that you'll have a number of '0' 's in there. and who is to say in the original array there wasn't a 0? | |
Re: For jsp/servlet related questions, you should post in [this forum](https://www.daniweb.com/web-development/jsp/24). Also: it would be a lot easier for anyone to help you find an answer, if you specified what the actual problem is. | |
Re: Unfortunately, the title of the book you are reading says it all: "Teach yourself Java in 21 days" ... programming in a certain language is not possible to be tought in such a limited time, especially since you teach yourself, and the reason you are 'learning' is because you don't … | |
Re: First of all, for jsp related questions, you should post in [this forum](https://www.daniweb.com/web-development/jsp/24). If you just copied this code from somewhere: stop doing so and learn to write your own. If this code is yours: remove all of that Java code out of the jsp. the jsp file is meant … | |
Re: Not to mention, you are asking this on a forum that is (mostly) read by coders. So the next answer shouldn't come as too big a surprise. It is far from difficult to write your own application that does just that. The question is, do you really want to. Sending … | |
Re: on line 43, you call this: `super (p0, p1, p2, p3);` meaning, you are trying to invoke the constructor of the super class (being Button) with those parameters. those arguments are of the type(s): `android.content.Context p0, android.util.AttributeSet p1, int p2, int p3` as the stacktrace says: Button does not have … | |
Re: That refers to the C-drive in your computer. | |
Re: 1. You don't. you pass an object to the report, and based on the values stored in it (which you configure in Jasper) it will either show or not show the fields you want. 2. This makes no sence. That 'static' text is in your code. first of all, why … | |
Re: for jsp related questions, [this forum](https://www.daniweb.com/web-development/jsp/24) is better suited. What have you tried so far? What experience do you have in working with jsp/servlets? | |
Re: Why does everybody who is new in Java assumes they need to start of using jdbc? It would be easier for you to understand if you first started with the basics of Java and the basics of Maven. as Peter says: `mvn clean install` should do the trick. or, if … | |
Re: very basic mistake (even though my response is a bit late) when advertising your blog (or merely referring to it, like you do in your initial post), always, ALWAYS provide the url. if nobody knows where to find your blog, chances are they won't visit it. | |
Re: So, you don't even know what language you are programming in? I hope you understand that this makes it very difficult for anyone to help you. you show nothing about the code that is causing the problem, and you don't show anything of where the dependencies are set. You'll need … | |
Re: public static double calcTemp here, the return type is double, so you either have to return a double, or change the return type to void. at the end of your method, there is a System.exit(0); which will automatically end your application. since you call this method, and still have statements … | |
![]() | Re: I have the feeling I've seen this question before the last two days, yet my answer remains the same: why a JFrame? why not use your .jsp file for the UI part? |
Re: Amrita: Java Script does not exist. There is Java, the programming language, and JavaScript. Some believe that, since their names and parts of their syntax 'look alike' they are related, and, I guess, in a way, you can say they are. Just in the same way that a 'carpet' is … | |
Re: for future reference: "Am getting a nullpointer error" doesn't tell us anything. tell us which line it occurs on. show some of the stack trace. point out in your code which line it is. Sugmuffen: what makes you think that? why Stranger? why not user? or why not a member … | |
![]() | Re: so, you've found the syntax for servlet ... why not use it, that's what it's for. call your other class from within that servlet. |
Re: basically, what you need to do, is iterate over your array(s). so, a bit like this: int max = fromMyArray[0][0]; int iPos = 0; int jPos = 0; for ( int i = 0; i < outerLength; i++){ for ( int j = 0; j < inner length; j++ ){ … | |
Re: If you are new with java programming, the best thing to start with is the basics. | |
Re: edit? your jasper report needs to be compiled before you can use it, so actually edit the report at runtime: not possible. you can use conditions, though. | |
Re: We can, however, give you an estimate of the probabillity of you going to the next class/grade, if you want. | |
Re: iamthwee: I assume he's referring to his other thread, where he also just posted his assignment. | |
Re: That's a nice assignment, Farhanalee, but we are most interested into finding out what part of that assignment it is you are having trouble with. You will find that you get a lot more response if you show us what you have already tried and where you are stuck. In … ![]() |
The End.