4,084 Posted Topics

Member Avatar for sabata mmoledi

and, to avoid getting 'weird' results, don't forget to override the toString method in your Pet class.

Member Avatar for stultuske
0
216
Member Avatar for dynamix1022

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 …

Member Avatar for stultuske
0
119
Member Avatar for ruhulaminice

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

Member Avatar for Heanre
0
432
Member Avatar for kimhale43

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

Member Avatar for CantonMIGD
-2
142
Member Avatar for vivekH

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

Member Avatar for vivekH
1
4K
Member Avatar for sabata mmoledi
Member Avatar for vinod111

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 …

Member Avatar for stultuske
0
129
Member Avatar for bongumusa

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 …

Member Avatar for stultuske
0
64
Member Avatar for gahhon

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

Member Avatar for gahhon
0
206
Member Avatar for Shilpa_3

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 …

Member Avatar for stultuske
0
191
Member Avatar for <M/>

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 …

Member Avatar for iamthwee
0
501
Member Avatar for compscigirl

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

Member Avatar for mKorbel
0
212
Member Avatar for ema-miles

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 …

Member Avatar for Ant695
0
404
Member Avatar for cabosun

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.

Member Avatar for stultuske
0
7K
Member Avatar for asif49

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

Member Avatar for eblasting
0
205
Member Avatar for Vaibhav_5

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 …

Member Avatar for stultuske
-1
137
Member Avatar for fredy21

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 …

Member Avatar for Phaelax
0
177
Member Avatar for Search_not

You have code like this: `catch(IOException ieeo){ }` and you expect us to go and debug it?

Member Avatar for Search_not
0
254
Member Avatar for Varunkrishna

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 …

Member Avatar for Varunkrishna
0
1K
Member Avatar for jjones0150

replace this: CircleClass circleClass = new CircleClass(); Circle circle = circleClass.new Circle(radius); by this: `Circle circle = new Circle(radius);`

Member Avatar for stultuske
0
312
Member Avatar for sameer.a.awan1
Member Avatar for anandhachandru

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 …

Member Avatar for anandhachandru
0
626
Member Avatar for alemojarro

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?

Member Avatar for JamesCherrill
0
96
Member Avatar for Sudhakar_1

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 …

Member Avatar for stultuske
0
209
Member Avatar for Sudhakar_1

Read my reply in your [other Thread](https://www.daniweb.com/software-development/java/threads/492792/timer-issue-code).

Member Avatar for stultuske
0
105
Member Avatar for jjones0150
Member Avatar for stultuske
0
230
Member Avatar for Newbiejavagirl

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

Member Avatar for JamesCherrill
0
100
Member Avatar for Zubenna

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?

Member Avatar for JamesCherrill
0
326
Member Avatar for sabariN13

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.

Member Avatar for stultuske
0
137
Member Avatar for TekknoDraykko

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 …

Member Avatar for stultuske
0
285
Member Avatar for GingerDontCare

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 …

Member Avatar for stultuske
0
544
Member Avatar for Chris920

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 …

Member Avatar for Chris920
0
273
Member Avatar for adnan_6

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 …

Member Avatar for stultuske
0
281
Member Avatar for ali11
Member Avatar for prafulla23

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 …

Member Avatar for stultuske
0
242
Member Avatar for Sudhakar_1

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?

Member Avatar for anandhachandru
-1
104
Member Avatar for JohCarlo

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 …

Member Avatar for peter_budo
0
3K
Member Avatar for sanaa2014

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.

Member Avatar for rosario1990
0
1K
Member Avatar for JohCarlo

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 …

Member Avatar for JohCarlo
0
163
Member Avatar for Markyboy

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 …

Member Avatar for samson.dadson.3_1
0
225
Member Avatar for amogh.max

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?

Member Avatar for JamesCherrill
0
420
Member Avatar for AmritaHasan11

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 …

Member Avatar for bijutoha
0
207
Member Avatar for Kadian

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 …

Member Avatar for JamesCherrill
0
164
Member Avatar for amogh.max

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.

Member Avatar for stultuske
0
276
Member Avatar for Trevor_5

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

Member Avatar for stultuske
0
204
Member Avatar for Amenda.St

If you are new with java programming, the best thing to start with is the basics.

Member Avatar for peter_budo
0
255
Member Avatar for jyotibborade

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.

Member Avatar for stultuske
0
50
Member Avatar for ema-miles

We can, however, give you an estimate of the probabillity of you going to the next class/grade, if you want.

Member Avatar for stultuske
-3
133
Member Avatar for Farhanalee

iamthwee: I assume he's referring to his other thread, where he also just posted his assignment.

Member Avatar for stultuske
0
140
Member Avatar for Farhanalee

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 …

Member Avatar for iamthwee
0
303

The End.