4,084 Posted Topics

Member Avatar for lena1990

look into charsets make sure you have the same configured for your DB. if your DB doesn't 'understand' arabic symbols, he won't interpret them right.

Member Avatar for lena1990
0
126
Member Avatar for benjo.s.lucas

your splitting is correct, but you need to use the nextLine method of Scanner, not the next method. you only store a in the String you refer to with w, so it's quite normal you only get a.

Member Avatar for JamesCherrill
0
195
Member Avatar for Suzie999

wouldn't it be more logical to keep the unread threads marked as unread, but to have threads older then a certain amount of time (older as in, hasn't been posted in) as read instead?

Member Avatar for Suzie999
0
282
Member Avatar for RazaAjmi

also, the next two parts of your code: catch(Exception ex) { JOptionPane.showMessageDialog(null,"Error in cosUpdate() Method","Error",JOptionPane.ERROR_MESSAGE); } catch(Exception ex){ } might cause you some trouble: 1. always catch your exceptions as specific possible, don't just rely on the Exception class to do the Pokémon move and "Catch'em all!!" 2. neither of …

Member Avatar for stultuske
0
153
Member Avatar for emanhossnycs

I assume you are aware of what /** * */ comments have to do with this? anyway, [this link](http://stackoverflow.com/questions/1777175/how-can-i-generate-javadoc-comments-in-eclipse) might help you out a bit

Member Avatar for JamesCherrill
0
219
Member Avatar for vedmack
Member Avatar for stultuske
0
3K
Member Avatar for Phrren

actually, it would compile and 'work' with just return, the problem was that he didn't end his statement with ; what do you want your random number to return? between what ranges? or no ranges at all?

Member Avatar for stultuske
0
1K
Member Avatar for somjit{}

IMHO, there are a lot of better ways to learn to program then watching video tutorials, but then .. that's just me. what I do wonder is, why do you post this here? I don't see anything Java related on CodeSchool.com

Member Avatar for somjit{}
0
220
Member Avatar for carmen100

Amol555, I'll just assume that first 'HTML' in your post was supposed to read HTML5?

Member Avatar for stultuske
0
525
Member Avatar for joma.tioquin
Member Avatar for kilermage

trust me, with that image on it's own, we can just see what line the problem is in, but since there's no line in the editors, we don't even know what line that is. you'll have to give some extra information here.

Member Avatar for kilermage
0
205
Member Avatar for Mr.M
Member Avatar for bobrown101

`public String phone_number;` that is your declaration of phone_number in your activity class. now, you instantiate your activity class, but you never set a value to phone_number, so ... yes, it does still have a null-reference. you may want to do a few things here: - set default values, or …

Member Avatar for stultuske
1
885
Member Avatar for karthikmanda

also, that is very messy code... learn to use servlets and separate your logic from your UI. as soon as you plan to maintain this code, you'll thank yourself for doing so.

Member Avatar for LastMitch
0
282
Member Avatar for mathewshiby

maybe creating an app that generates random project subjects and possible requirements. if you would start (and finish) this thing, please, be sure to make it public accessible, so that we won't be bothered with questions like 'cld u pls gimme a topic?' in the future.

Member Avatar for Meir David
-1
317
Member Avatar for pmark019

most likely, if you go over the [JSP](http://www.daniweb.com/web-development/jsp/24) forum, you'll find all the information you need about working with jsp's and servlets. if not, I can recommend the book Head First Servlets & JSP

Member Avatar for stultuske
0
551
Member Avatar for samoslook

this is the Java forum of Daniweb. for asp.net related questions, I'm pretty sure this forum [ASP.net](http://www.daniweb.com/web-development/aspnet/18) is more suited.

Member Avatar for samoslook
0
133
Member Avatar for rohansharma

next to the fact that this forum is not meant as advertising program, you may want to update your material, and change from J2EE to JEE

Member Avatar for JamesCherrill
-2
248
Member Avatar for stefanienikole

also 'It keeps giving me errors.' is a pretty vague description. if what Yetzderixx mentioned doens't solve all your problems, you may want to specify the 'errors' part.

Member Avatar for jwenting
0
817
Member Avatar for gyno

why would you need another way of doing so? that's a very long sentence, could you please explain a bit more clear?

Member Avatar for JamesCherrill
0
259
Member Avatar for nitin1

heh ... I'm not sure how the deletion is handled, but if I'm correct, user info is stripped. even if the posts remain there, there won't be a link left to who made them. but for questions like this, I think this is a better suited forum: http://www.daniweb.com/community-center/daniweb-community-feedback/26

Member Avatar for happygeek
0
792
Member Avatar for legendaddybok

my advice: you seem to know the basics of jsp, no head over to servlets. that should get all of that java code out of the jsp file, and make it a lot easier to work with.

Member Avatar for stultuske
0
906
Member Avatar for abra_ka_dabra

[this](http://docs.oracle.com/javase/tutorial/essential/io/buffers.html) might be a good place for you to start searching

Member Avatar for abra_ka_dabra
0
182
Member Avatar for abra_ka_dabra

the JRE is the runtime environment. when installed on your system, it allows you to run Java applications. if you want to write your own, though, you'll need a bit more. you'll need the JDK (development kit) for that, it contains the JRE, but it also contains additional tools you'll …

Member Avatar for abra_ka_dabra
0
201
Member Avatar for lena1990
Member Avatar for incxx

also, having your main method throw Exceptions is a very bad design, you should get out of your system as soon as you can. remember: the main method is the very last place where you can catch the exceptions and add some exception handling.

Member Avatar for JamesCherrill
0
211
Member Avatar for manpreetchaney
Member Avatar for vivosmith

in a bit a "real time" example: a person is born, you set his age to: 0. let's say, you run a thread. each year on the same day, you have to change that persons age to age+1. you can't, however, do that using the constructor, because if you do, …

Member Avatar for stultuske
0
247
Member Avatar for jemz

implement a keyListener. in the methods, print the value of the char linked to the KeyEvent, that way you know which charvalues to filter on.

Member Avatar for jemz
0
1K
Member Avatar for ishannshah
Member Avatar for abra_ka_dabra

you are using the == operator to compare Strings' values, you should use the equals method.

Member Avatar for abra_ka_dabra
0
140
Member Avatar for rapela thomas

jre is not a compiler, it contains a compiler. it's the runtime environment. have you set the path to the jre in you OS environment variables? the followng > something like a problem to do with "main"and also the red buttons is a very vague description. I assume he's saying …

Member Avatar for stultuske
0
161
Member Avatar for Sheetal Krishna

why would you do that? I guess you could do that by keeping every object reference that you create also in a List somewhere, and counting those that are 'null'.

Member Avatar for jwenting
0
275
Member Avatar for libathos
Member Avatar for stultuske
0
247
Member Avatar for elaf salah
Member Avatar for elaf salah
-1
167
Member Avatar for london-G

firstly, your title makes no sense: you can't declare methods inside methods. are the above the methods as how they work? if so ... what is the code that doesn't work? I really do not understand what you mean by this: > They work fine, however when I try to …

Member Avatar for stultuske
0
116
Member Avatar for sash_kp
Member Avatar for ddanbe
-1
298
Member Avatar for tdoggrme

hlut... not only does your answer provide no answer to the question, but this question has been asked (and answered) over 7 years ago. considering the number of posts of the OP, I'm pretty certain (s)he isn't looking (here) for an answer anymore.

Member Avatar for JamesCherrill
0
7K
Member Avatar for m1051f

http://stackoverflow.com/questions/5593928/how-to-convert-pdf-file-into-ppt-file-using-java http://converting.software.informer.com/download-converting-pdf-to-powerpoint-from-java/ those links might be able to help you a bit.

Member Avatar for sheraz786
0
105
Member Avatar for callen91

well, the main problem is: you are having an exception in the class JavaApplication10, of which you haven't shown any code. you are somewhere in that class (line 20) treating an int as a boolean, that's your problem. saying more would be speculating.

Member Avatar for stultuske
0
523
Member Avatar for abra_ka_dabra

personally, I always added a check to see whether the file exists before starting to read or write, but, to answer your questions: 1. if the file doesn't exist, a new file with the specified path and name will be created. it's trying to read from a non-existing file that …

Member Avatar for stultuske
0
167
Member Avatar for trini_flava

here are a few of the very first results a 'java features' query on google returned: http://www.oracle.com/us/technologies/java/features/index.html http://www.oracle.com/technetwork/java/javase/jdk7-relnotes-418459.html

Member Avatar for stultuske
-1
67
Member Avatar for khairullah.kazimi.1
Re: game

public class AGame{ } there you have it: a game coded in Java. enjoy.

Member Avatar for stultuske
-2
109
Member Avatar for ganges

http://www.hibernate.org http://www.amazon.com/s/ref=nb_sb_noss_1?url=search-alias%3Daps&field-keywords=hibernate+book

Member Avatar for stultuske
0
125
Member Avatar for Anas Shahid

this is not a "gimme codezzzz" forum. you start writing your code, we 'll help you tackle any difficulties you meet along the way.

Member Avatar for JamesCherrill
0
222
Member Avatar for Jorox03
Member Avatar for Violet_82

why do you need to upload java files? there are several alternatives: use pastebin, or another site and provide a link to where your code can be found. upload an archive containing the files put the code in your posts themselves ..

Member Avatar for Violet_82
0
271
Member Avatar for sushants

String is a datatype. for more information, I would suggest you take a look at [this](http://docs.oracle.com/javase/7/docs/api/java/lang/String.html) and go over your textbook/course notes again. it's a very basic datatype, used in every application I've ever seen and most likely in every application/code I have yet to see, so studying up a …

Member Avatar for JamesCherrill
-4
225
Member Avatar for london-G

hard to say if we don't know what type cb1 is, but if it's a String it's not: `cb1 = "director"` but `"director".equals(cb1)` 1. if you want to compare two Objects on value, use the equals method, not the == operator, which will simply compare the references. 2. in this …

Member Avatar for JamesCherrill
0
160
Member Avatar for game06

I hate it to say, but your code makes not very much sense to me. having all those classes extend JFrame, I mean. anyway, what exactly is it you try to understand yet don't get?

Member Avatar for pbj.codez
0
256

The End.