4,084 Posted Topics

Member Avatar for Chotaliya Divye

[QUOTE=Chotaliya Divye;558771]My Name is Divyesh Chotaliya. can any one got idea or having code please send me mail. my mail id is [email]do.not.need@to.know[/email] [/QUOTE] well, here's a thought: read the forum rules and put some effort of your own in it. also, this is a public forum, with the intention …

Member Avatar for peter_budo
0
109
Member Avatar for sonyb

[QUOTE=sonyb;557626] while(!function1.equals(selection)) { JOptionPane.showInputDialog(null, selection + " is not the correct function.\n\nSorry please try again"); counter++; System.exit(0); }[/QUOTE] for starters, get rid of that System.exit(0); statement. haven't read the rest, so there might be some other errors in it. you might want to consider putting your code in code-tags next …

Member Avatar for darkagn
0
85
Member Avatar for kim2_0016

[QUOTE=kim2_0016;557535]can you give ne some ideas on how to do this program output?[/QUOTE] first calculate the correct result, then use setText() on the JLabel to show your output in it.

Member Avatar for stultuske
0
56
Member Avatar for bops

[QUOTE=bmbvm5;553562]Hello, do you knew java to help me.[/QUOTE] yes... Java is a brand of coffee. If you want help with your coding, start a new thread, provide us with the info: - what does it need to do - what have you allready done - where are you stuck and …

Member Avatar for shinnxennosagga
0
217
Member Avatar for rajeshwarreddyt

this 'kind of' looks a lot like your other post asking about information on how to retreive a user login from the system. you are creating several threads asking for help, yet I still haven't seen much effort from your side. how about posting some code, or enlighten us about …

Member Avatar for rajeshwarreddyt
0
136
Member Avatar for vladdy19

[QUOTE=piers;541651]int num = Integer.parseInt(parseString)[/QUOTE] which would be correct, if the String to parse was, for instance, String toParse = "97"; int num = Integer.parseInt(toParse); but with an input-String like "asu", like in the example he gives us, this will lead to the necessary exceptions, since "asu" is not recognized as …

Member Avatar for javaAddict
0
168
Member Avatar for chankya

a row and a column of what? a table on a jsp page? in a jTable? what do you want and what have you tried so far? it's no use for us to try sollutions that have allready proven to you not to work.

Member Avatar for Phaelax
0
145
Member Avatar for Rentro

but if it's "ee" you want as result: int pos = firstString.indexOf("ee"); System.out.println(firstString.substring(pos, pos+2));

Member Avatar for Parsu7
0
212
Member Avatar for orcboyx

yup... but only after a lot of coffee. if you'd like a more java oriƫnted answer, you might want to share with us what you're trying to do, how you've implemented the sleep function and, very important, what kind of problems you've encountered using this function

Member Avatar for VernonDozier
0
91
Member Avatar for HeroOfTime

[QUOTE=HeroOfTime;545549] Am I just looking in the wrong places in the java libraries I've used[/QUOTE] hard to say, since you do not say anything about where you've been looking or what java lib's you 've used. I take it there are some who can help you with this, but giving …

Member Avatar for Ezzaral
0
137
Member Avatar for joker40

In my (humble) opinion, you might want to improve your english before trying to write tutorials in them, since it will be harder for newbies to understand texts that are made in other than their maternal languages, certainly if the text contains errors. also, it might be a good idea …

Member Avatar for joker40
0
124
Member Avatar for ihtraa

you might want to make a bit more clear what you mean by: "filter that String" would you like to get the same String without spaces, without vowels, would you like to split it into seperate String Objects?

Member Avatar for stultuske
0
104
Member Avatar for chaitramutalik

[QUOTE=chaitramutalik;545641]how do i be an expert in java.[/QUOTE] by making sure you control the Java language a lot better than english... a lot it's just like with everything else: practise makes perfect. having someone patting you on the back won't do the trick.

Member Avatar for stultuske
0
70
Member Avatar for sunne

[QUOTE=sunne;475457] I need to find something similar on windows, as the code must run on both on windows and linux. [/QUOTE] in that case I take it you are happy to have learned that Java code does not depend on the platform it is run on? the same code will …

Member Avatar for jwenting
0
140
Member Avatar for gallantmon1

or add it all to a single String object. String number = ""; and every time you have found your new number: number += " " + numberYouHaveJustFound;

Member Avatar for gallantmon1
0
147
Member Avatar for Shveetis

you might want to show us some code, if you would like us to figure out what's wrong with it and if you do.. please don't forget to pot code brackets ['Code=JAVA] ['/Code] without the ' around your code

Member Avatar for javaAddict
0
84
Member Avatar for sibitech
Re: hi

how about the 'Create random J2EE projects without bothering others' (especially twice) Even though we are not here to provide you with ideas, this forum has been visited many times by people asking the same as you. some of them even got (what they might consider to be) decent answers. …

Member Avatar for stultuske
0
56
Member Avatar for the b

[QUOTE=sky100;544213]does anybody have a simple program for player play with comp. and use import Keyboard and Random only?[/QUOTE] the answer to this is propably 'yes', but who that anybody is... I have no clue. figure out what you want out of your program, figure out the logics behind it, start …

Member Avatar for stultuske
0
233
Member Avatar for SPJ

choose another major, if you can't figure out the logic behind it, while it represents 15% of the points for that module, well.... you're quite <insert naughty word here>

Member Avatar for stultuske
-2
357
Member Avatar for piers

agree with JavaAddict.. especially substring is worth taking a look at, it'll solve your entire 'problem' in two lines of code. String name = "Hello World"; String firstName = <insert one instruction here>; String lastName = <insert one instruction here>;

Member Avatar for Parsu7
0
156
Member Avatar for Ankita B

add the username as an attribute to the request (or to the session) after you've pressed the button on the first page, and retreive it in the next .jsp file something like : request.setAttribute("name",form.name); Hello, <%request.getAttribute("name");%>

Member Avatar for stultuske
0
132
Member Avatar for wolverine_ramir

first of all, you must understand that the String class is not meant to compute things with. If you really want to compare dates, you might want to check out the classes 'Date', or, propably even better: 'GregorianCalendar'. By using those, it should be no real problem determining the difference …

Member Avatar for piers
0
86
Member Avatar for williamku87

[CODE] public class AskedExample{ public static void main(String args[]){ System.out.println("enter your code here"); } } [/CODE] is the same as: [|CODE] public class AskedExample{ public static void main(String args[]){ System.out.println("enter your code here"); } } [|/CODE] without the '|'s if you want us to check out your code, we would …

Member Avatar for piers
0
125
Member Avatar for nuch1311

you just store the first element of the array in an int, double, or whatever you want to use, compare it to all the other elements and if you find one that is bigger in value, you store that one in that variable. in you jsp file (at least, that's …

Member Avatar for piers
0
123
Member Avatar for mtbutt

no need to answer what's allready been answered [URL="http://www.daniweb.com/forums/thread109646.html"]your other topic[/URL]

Member Avatar for piers
0
101
Member Avatar for alejalv

well.... I'm pretty sure you're not the only person to having received this task, maybe your fellow students could have given you some tips. here's one from my part: stop waiting for the last day to make your assignments, especially those about a subject you're not very good at. the …

Member Avatar for VernonDozier
0
177
Member Avatar for srinivasrk

don't go to the see for a bath, if you have a perfect shower at home :) you are making it way to hard on yourself. all you need to use is the system properties, which you can find by (either) Properties props = System.getProperties(); or, for your problem: String …

Member Avatar for stultuske
0
395
Member Avatar for Ankita B

maybe your application is not expecting to find what you want it to find :) mistakes are common you know, is pretty hard though, to try and figure out what the problem is, without having a look at the code that produces the actual Exception

Member Avatar for Ankita B
0
141
Member Avatar for Ankita B

don't really see the problem in there, but didn't look that thoroughly either. you might try to format your code a bit, using the code tags. I'm sure a lot more of developers present will be pursuaded to read your code that way.

Member Avatar for stultuske
0
145
Member Avatar for neelunova

[QUOTE=neelunova;538432]I am using itext to create a pdf file for slovakia in java ,and after the pdf is created some characters are not displayed properly.I am using cp 1250 as charecter set and ARIALUNI.TTF file for font.How do i resolve the problem?[/QUOTE] well... I guess you'll have a bigger chance …

Member Avatar for neelunova
0
81
Member Avatar for toshibata

jup, nothing wrong with the code, and it's doing all you've told it to do.

Member Avatar for stultuske
0
104
Member Avatar for kilermage

I take it he handed you just the same sollution as the answers as JavaAddict and Ezzaral?

Member Avatar for stultuske
0
156
Member Avatar for eddy556

agree with JavaAddict. ID is mostly the name given to the unique key. you can not insert something with a key that allready exists. You also don't get to say 'where' the data is being putted, it is just added to the database, so a where clausule is a very …

Member Avatar for masijade
0
404
Member Avatar for jayohn

[QUOTE=sarehu;534797]The first step is to learn C. What are your problems in regard to that?[/QUOTE] first step might be to ask C-related questions on the C forum :) I have no doubt that many of the developers on the java forum are willing to help, but do bear in mind, …

Member Avatar for Nick Evan
0
109
Member Avatar for Aman0711

how can you be graduating if you can't decide on that? you're not an it student are you??

Member Avatar for Aman0711
0
91
Member Avatar for Javaman31

well.... I'm not enterely sure what you want, but in my opinion, you're making it way too hard. I've written a piece of code (based on yours) that does what I think you're trying to accomplish :). You said that the output wasn't right... actually, it was. You just weren't …

Member Avatar for stultuske
0
94
Member Avatar for abhishekkhandel

never really thought of that ... what you could do is create a log file with all the data about the dir you'd like to check, and have a thread continously compare the current state with the state in the log file, but I have no doubt there are for …

Member Avatar for ithelp
0
77
Member Avatar for sridharp_in

[QUOTE=sridharp_in;533894]I need code for autosuggest textbox in html using java connecting database. plz its very urgent. Thanking u in advance. Sridhar.[/QUOTE] whenever you have a problem like this, there's this nasty little tool that can almost certainly solve the problem. it's called '[URL="http://www.google.com"]Google[/URL]'

Member Avatar for jwenting
0
84
Member Avatar for linda.kean

there are some errors in your code I've changed a bit in it, so it'll run [CODE] public class SumIntegers { // private variables to be used by this class private int n; // number of integers in the array private int array[]; // the array to hold the integers …

Member Avatar for stultuske
0
161
Member Avatar for kabo

[QUOTE=kabo;533989]can sumbody help in solving the problem below:[/QUOTE] the answer is: yes if you would have asked: will someone help... nope. either tell your teacher that you need some help, study a little more yourself, or be prepared to fail your class. even if we were to write the code …

Member Avatar for stultuske
0
134
Member Avatar for PL.P27

[QUOTE=PL.P27;532641] [CODE]private void reversePalindrome() { String palindrome=""; char[] array=palindrome.toCharArray(); char[] carol=new char[palindrome.length()]; for(int i=array.length-1, j=0; i>=0; i--, j++) { carol[j]=array[i]; } System.out.println(carol); }[/CODE] [/QUOTE] you almost have everything you need. just use this array, and check whether or not array[i] and array[palindrome.length() - i] are the same, while i <= …

Member Avatar for jwenting
0
145
Member Avatar for dharajsmith

[QUOTE=dharajsmith;529332] { {public class DVD(); } [/QUOTE] no doubt these two lines will make your compiler complain instead of compile through your entire code, you've placed brackets that seem to have appeared out of thin air, like the one above. also, the class DVD you're trying to create should better …

Member Avatar for dharajsmith
0
183
Member Avatar for soccerrm1

had Java as well, but don't think about limiting yourself to Java ... next to Java, I have also had Cobol (which they (finally) stopped teaching this year), assembler, C++, perl, and some other languages. even if they do not show up while you're still attending college, you may be …

Member Avatar for stultuske
0
111
Member Avatar for ashkan3030

if it is so important to you, I would have thought you to have checked with Google or with [url]http://java.sun.com[/url] as far as I remember, wave files are supported by java on its own, if you would like to play mp3 files, you'll need some extra's, for instance the jmf …

Member Avatar for stultuske
0
89
Member Avatar for ashkash

try StringBuffer() easier, faster and easier to read than a Regex solution [CODE] String one = "Case number 123-456-789"; String two = one.substring(one.indexOf("r") + 2, one.length()); [/CODE]

Member Avatar for stultuske
0
245
Member Avatar for xanine

keep in mind, that you're using a command line parameter to get the volume of the array... that may not be the easiest way to work with, since you have to know in front how many rows there are in your input file.

Member Avatar for xanine
0
120
Member Avatar for brightstar

since you do not need it before tomorrow, it's quite an easy task. couldn't take more than 1 hour from someone who has only been teached java for a month (thinking about not the brightest student, and sure am stretching the time) don't be afraid to start coding, and to …

Member Avatar for satya5321
0
86
Member Avatar for Jananee

[QUOTE=Jananee;488962]So kindly hold your tongue...[/QUOTE] he did give an honest answer to your question ... how can we give you an answer if we have to 'hold our tongues'? you said you started this topic because you know what to do. well, if you DID know what to do, there …

Member Avatar for raja baba
0
98
Member Avatar for radha_athithan

and your question is? this forum is to be used as a 'learning platform' or to share your knowledge, not as a service desk filled with people who are eager to make your homework for you

Member Avatar for raja baba
0
90
Member Avatar for tactfulsaint

well... since you've said that you could figure it all out on yourself, I take it you've allready figured out that Java and JavaScript are not the same programming language?

Member Avatar for masijade
0
206

The End.