4,084 Posted Topics
Re: [QUOTE=aodpreacher;748504]Hi i live in the new york area and does anyone know where in new york or have a look up resource on where to find java programming courses? anywhere to teach java during summer or during winter any place to look up information would be helpful..i tried google but … | |
Re: [QUOTE=stephen84s;748568][URL="http://java.sun.com/j2se/javadoc/writingdoccomments/"]This[/URL] should help you understand how Javadoc comments should be written.[/QUOTE] nyeah, but I doubt he's actually trying to write javadoc-comments, otherwise he would mention his params, return and possible exceptions :) my bet is on javaAddict's solution, go and check what you put in there. it's like the magician … | |
Re: [QUOTE=krhillery;748088] This is what I have so far for my code for the card game of Hi/Lo. The line in green gets highlighted ... and an error message comes up saying " ')' expected". I'm not sure why, since I have the parantheses, and I tried brackets, but I got … | |
Re: [QUOTE=IMtheBESTatJAVA;744334]Im new at java, so using these terms doesn't really help me out too much. .[/QUOTE] since this are the appropriate terms, it does help to mention them. that way, you can learn what they mean/are .. if you stick to java, you're bound to hear them a lot more | |
Re: what part of "the answer has already been given" didn't you understand? if you think we're not more experienced in Java than you are, I hope you do realise we seem to be just a tad farther in our knowledge of the English language. [QUOTE=thariqrasheed;747973] just write the pgm for … | |
Re: [QUOTE=dixi;743343] Class Processtree{ String ProcessName; String StateName; Binary tree ProcTree; } So I think that I don't need to worry about the Processtree[/QUOTE] if this is all the code you have in Processtree, you might want to worry though. a better approach is to declare all your variables there private … | |
Re: and in that second loop, you use the value in that position in the array as maxValue | |
Re: [QUOTE=ebiz;746432]Hi. I currently have set up a GUI to have buttons on, linking to all my other classes. I am wondering how I would put the date and time at the bottom of the JFrame/JPanel. How would I do this, and will I put it within my GUI class, or … | |
Re: [QUOTE=nouryn;742602]Hi,I need to edit in a file without deleting all the data. Thanks[/QUOTE] do you need to edit the data in a file, append data, delete parts of the file (without deleting ALL of the data, as you put it), ... anyway, open notepad, type something, close and save it. … | |
Re: [QUOTE=ebiz;746433]I currently have an Oracle database, a Java Program, and a text file. Text files are being read by the system, which automatically updates the database. How would I make a JTable to make the database be displayed nicely in a JFrame?[/QUOTE] declare one, fill it up with your data … | |
Re: [QUOTE=jackieblock;746421] I can get it to read from the file for the first vehicle but I get the Array Index Out Of Bounds Exception:3 on line 181 .[/QUOTE] well, I wasn't planning on counting all those lines :-/ you may want to use code tags, in such a way that … | |
Re: your app bit more OO-minded [Code=Java] package turn; public class Super { private String platformFlag=null; public Super(){ setPlatformFlag("sekhar"); } public void setPlatformFlag(String in){ this.platformFlag = in; } public String getPlatformFlag(){ return this.platformFlag; } } [/Code] [Code=Java] package turn; public class Model { public void result(Super dupObj){ System.out.println("Value of platformFlag" + … | |
Re: [QUOTE=sandawg;745579]Thank you for your comments and suggestions, unfortunately for me I do not yet know enough about java programming to fully understand what you are telling me. As one can likely imagine, I am taking a required class and continue to struggle mightily with java.[/QUOTE] Java is an Object Oriented … | |
Re: do you know our good friend [URL="http://www.google.com"]google[/URL]? do note that not all "free expert tests" are as good as they claim to be, so if you're looking for a serious test, don't stare yourself blind to those freebees. | |
Re: [QUOTE=poggie;745375]Okay, so moving along, my next question is how do i check these two arrays as in the array random to array card. so if a random number is actually present in the card it will fill that spot with a value(99) to show it has been called. And print … | |
Re: as already pointed out, wrong forum next... how do you expect us to tell whether DreamWeaver is the perfect choice for you? we know nothing of your background/skills, and we know nothing about your (lack of?) experience with other tools | |
Re: even using indexOf(" "); propably could help you out. but what do you mean with "skip" read over them, erase them out of the String, ... ? | |
Re: [QUOTE=quuba;745227]hello goyofoyo ...[/QUOTE] you may also want to include some comments. as he said, he is new to Java. He's propably more benefitted with code and explanation than just code to copy paste | |
Re: a String is an Object ... so, what exactly don't you get? how to compare your Person-Objects? | |
Re: it does work, but you didn't implement everything. you programmed it so, that if Input1 contains the same value as s4, the error message is not displayed, otherwise it is. just reread JavaAddict's post and put the else's where needed | |
Re: I don't see the point of doing so. but yes, that is possible. but then again.. do you mean you want to create a table or such for every seperate week? I do hope you have some hard disk space to spare :/ | |
Re: [QUOTE=stephen84s;743239]you need me to spoon feed you the exact java syntax[/QUOTE] ... there is no spoon, Neo :) as for mahaboob Basha: Stephen84s already told you how to compare it dynamically. read the answers before disagreeing with them. | |
Re: [QUOTE=masijade;738562]Why should I? I don't need one.[/QUOTE] because if you don't, you risk failing eve.olambo's course.. we wouldn't want that, would we? :P | |
Re: @Antenka: he doesn't want the logic behind the solution, he wants the code to be handed to him (and if possible, a nice degree to go with it) | |
Re: what are we talking about here? :s two seperate applications or two seperate classes? | |
Re: [QUOTE=AdventureX;739666]We have been given a task to do the following:- Write a class LectureTheatre that has the following attributes (properties): lectureTheatreName / maxOccupancy / layoutStyle (the lecture theatre may be either flat or tiered) For example:- lectureTheatreName : Frankland LT ... or ... Fylde LT2 ... or ... George Fox … | |
Re: [QUOTE=miso66;742682] rectangle { topLeft = 40 50; size = 20 20; } circle { centre = 40 40; radius = 20; color = 0 0 255 } [/QUOTE] what is this supposed to be? a quick tutorial on 'how to generate exceptions'? be a bit more specific if possible on … | |
Re: [QUOTE=shubhang;742148]Sir, I am new at java ,so I dont know where to look for it. I searched my notes ,but didn't find anything. Please tell me where to find it. Thanks[/QUOTE] you'll be able to find it in the basic Java resources: [URL="http://java.sun.com/reference/api/"]the api's[/URL] | |
Re: my guess would be an unchecked recursion as well, propably unintended. something like: [Code=Java] public String getText(){ return "The text is = " + getText(); } [/Code] | |
Re: did it seem logical to you to post this in the Game Development forum??? | |
Re: [QUOTE=khalidmehmood;741120]a year ago i have post same thread at that time a person give me a URL, where i have download one lecture but i lost that URL.[/QUOTE] wow ... did you notice the SITE SEARCH button? why not use it if you know it's already posted | |
| |
Re: [QUOTE=sethgeco;740685]I am building a media player and i wish to add mp3 plugins to allow it to play more types of file but i don't know how to set my application up to except plugins. Dennis[/QUOTE] after 4 years, nobody is still reading this thread. but if you want to … | |
Re: [QUOTE=Ezzaral;739953]Drive-by code snippet.[/QUOTE] that's what you get in 'tha H00d' | |
Re: read them all in a list of objects, an object which has two variables: name and number and then search through that list to check the name that correspond to the number | |
Re: [QUOTE=masijade;740269]HelloWorld?[/QUOTE] this might be copyrighted, and the prof may think you cheated. make it "HelloMoon" just to be sure he can't say you just copied code. | |
Re: [QUOTE=detoxx;734363] ... for example ... i want it to display "1 hour 20mins 4 seconds" instead of "1.20 hours 80 mins" and how ever many in seconds. ... [code=java] min = subtot*60; hour = min % 60; sec = min*60; [/code][/QUOTE] [Code=Java] min = subtot * 60; if ( min … | |
Re: I'm not sure JCreator has a built-in create JavaDoc generator. I think NetBeans and Eclipse do, though if you want to stick to JCreator, which is propably best if you're a beginner and not really into the big applications yet, you might want to take a look at this [URL="http://neptune.netcomp.monash.edu.au/JavaHelp/howto/javadoc/index.htm"]Generate-Javadoc-tutorial[/URL]. … | |
Re: [QUOTE=mahaboob Basha;739315]Hi i want to implement one servlet where first i want add a user to the database and later when he logged again i need to check that whether he is already existed or not?if he is not existed i need to add those details to the database... can … | |
Re: [QUOTE=sachein;739558]hi all I am new to java,i want to create exe file for my jarfiles.I want the same for web based and stand alone application .can any body please explain the above[/QUOTE] normally, you should be able to explain, since the above is what you wish to achieve. anyway, it's … | |
Re: [QUOTE=ishaanviegas;739449]i wud like to knw if any1 has implemented sliding window protocol in java (UDP).[/QUOTE] 1 wud l1k3 t0 knw 1f 4ny1 c4n y0us3 3ngl15h? | |
Re: wow ... and to think I thought the .equals(..) method worked great :) | |
Re: public static void main(String args[]) throws IOException { I would suggest you to drop this throws IOException. you can throw it there if you want, but what's the use? the main method is the last possible place to catch it | |
Re: it's not as if your DB will be a part of the programming language. I would suggest you to use MySQL, it's free, and thus used for lots of examples you can find on the web. if you would like to have a DB written in Java, there's Derby, but … | |
Re: [QUOTE=localp;737729] please help me by giving a sample code and the output ...[/QUOTE] please help us by showing what you've tried so far | |
Re: [QUOTE=babusek;737803] Plz help me anyone with code .. [/QUOTE] kidding, right? [QUOTE=babusek;737803] Hope U understand my point[/QUOTE] not really, but keep on hoping | |
Re: [QUOTE=peter_budo;737189]@ukbasak - you just made my day, barking on thread that is one year old and forgotten[/QUOTE] especially since he's just pointing out what the last post said. | |
Re: [QUOTE=localp;736740] but my problem here is that when i enter a String like "dfjdkdjre" , as input , i get an error or rather an exeption.. how do i prevent this ... can i display an error message or ??[/QUOTE] by making sure to use only valid input.. or, just … | |
Re: never really used 2d arrays, but when I did (as a student) I took the easy way: [Code=Java] public class SearchChar { public static void main(String args[]){ char toFind = 'a';// determin the char you want; char[][] array2d = {{'1','k','d'},{'a','p'}};//a given array int a = -1; int b = -1; … | |
Re: [QUOTE=l_03;736478]hello guyz,, i am really confused,,,we are about to make a program in java,,,we are making an ATM,,,however i am confused because i only have a transaction in ATm once and i dont remember much because it was 3 years ago... before i start,,i want to ask... what is in … |
The End.