4,084 Posted Topics

Member Avatar for tanmaymisra

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 …

Member Avatar for stultuske
0
184
Member Avatar for Chem_1

public void worldCine(); { System.out.println("Ticket rate:" +t); } you should not have a ; right behind the method definition.

Member Avatar for Chem_1
0
223
Member Avatar for manaila

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

Member Avatar for manaila
0
223
Member Avatar for smartguy360

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--) { }

Member Avatar for JamesCherrill
0
918
Member Avatar for Siick7

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 …

Member Avatar for stultuske
0
302
Member Avatar for titus.k.s

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 …

Member Avatar for titus.k.s
0
91
Member Avatar for titus.k.s

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 …

Member Avatar for stultuske
0
111
Member Avatar for titus.k.s
Member Avatar for jwenting
-1
262
Member Avatar for titus.k.s

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 …

Member Avatar for stultuske
0
329
Member Avatar for titus.k.s
Re: Help

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 …

Member Avatar for stultuske
0
151
Member Avatar for Chem_1

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.

Member Avatar for stultuske
0
94
Member Avatar for eLLaii

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 …

Member Avatar for stultuske
0
384
Member Avatar for m4mukulgarg

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.

Member Avatar for Schol-R-LEA
0
558
Member Avatar for surya55

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 …

Member Avatar for stultuske
0
180
Member Avatar for surum

head first servlets and jsp. the ide you (are going to) use, is not relevant.

Member Avatar for stultuske
0
123
Member Avatar for softDeveloper

[this](https://blogs.oracle.com/javajungle/entry/secure_email_from_java) post on the Oracle blogs might shed some light on it

Member Avatar for stultuske
0
223
Member Avatar for henryz_box

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 …

Member Avatar for henryz_box
0
343
Member Avatar for surya55

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

Member Avatar for ~s.o.s~
1
230
Member Avatar for niccid76

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.

Member Avatar for Taywin
1
218
Member Avatar for nathan rashid

[This](http://lmgtfy.com/?q=where+i+can+download+a+javax.speech.*) should lead you to the right place in no time

Member Avatar for raj.mscking
0
1K
Member Avatar for khennxi

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.

Member Avatar for Schol-R-LEA
-3
847
Member Avatar for James_30

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 …

Member Avatar for James_30
0
175
Member Avatar for EyeBridge

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.

Member Avatar for tarzana rahman
0
293
Member Avatar for asifalizaman

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

Member Avatar for vacurect
2
583
Member Avatar for Jack_9

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 …

Member Avatar for Hiroshe
0
272
Member Avatar for MasterHacker110

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 …

Member Avatar for Schol-R-LEA
0
616
Member Avatar for momal

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

Member Avatar for JamesCherrill
0
5K
Member Avatar for Wei_3

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

Member Avatar for JamesCherrill
0
676
Member Avatar for directorabbey

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

Member Avatar for llaspina
-1
166
Member Avatar for Somayeh_1

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 …

Member Avatar for llaspina
0
183
Member Avatar for gua543

"look like global variables" even though static variables might look similar to global variables, there are no such things as global variables in Java.

Member Avatar for gua543
0
439
Member Avatar for mrabrar09

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

Member Avatar for stultuske
0
532
Member Avatar for ParPau

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.

Member Avatar for Taywin
0
2K
Member Avatar for sumaya_ak

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.

Member Avatar for stultuske
0
173
Member Avatar for Wandaga1

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 …

Member Avatar for Taywin
0
246
Member Avatar for screenedcreamy

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 …

Member Avatar for stultuske
0
256
Member Avatar for liltrig3

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

Member Avatar for stultuske
0
4K
Member Avatar for moaz.amin.37

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 …

Member Avatar for Akansha Jain
0
2K
Member Avatar for brittney_2

I'm not entirely clear on what you are trying to do. can you elaborate a bit on it, please?

Member Avatar for ~s.o.s~
0
752
Member Avatar for IndieDeV2002

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

Member Avatar for bCubed
0
936
Member Avatar for RAJboss

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

Member Avatar for peter_budo
0
301
Member Avatar for xxwikkixx

you are using some variables that I don't see declared or initialized anywhere, so I'll doubt this code 'll even compile

Member Avatar for Taywin
0
259
Member Avatar for reuben_1
Member Avatar for Richa_2

indeed. same signature, same name ... I can't think of a single reason why the code shouldn't compile.

Member Avatar for stultuske
0
333
Member Avatar for dwel

[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

Member Avatar for Rajeev Kumar_1
0
472
Member Avatar for moaz.amin.37

[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

Member Avatar for moaz.amin.37
-1
333
Member Avatar for screenedcreamy
Member Avatar for brittney_2

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)

Member Avatar for brittney_2
0
215
Member Avatar for moaz.amin.37

moaz.amin.37 you are the one who brought up the variable g. just check your initial post: `public void paint(Graphics g)`

Member Avatar for JamesCherrill
0
384
Member Avatar for samuel.tenderfeet

so, what are the compiler errors you get? usually, the stacktrace tells you exactly what is going wrong.

Member Avatar for stultuske
0
149

The End.