4,084 Posted Topics

Member Avatar for aodpreacher

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

Member Avatar for stultuske
0
114
Member Avatar for krhillery

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

Member Avatar for stultuske
0
109
Member Avatar for krhillery

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

Member Avatar for Ezzaral
0
276
Member Avatar for IMtheBESTatJAVA

[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

Member Avatar for masijade
0
204
Member Avatar for thariqrasheed

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 …

Member Avatar for stultuske
1
154
Member Avatar for dixi

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

Member Avatar for dixi
0
140
Member Avatar for nanna

and in that second loop, you use the value in that position in the array as maxValue

Member Avatar for nanna
0
1K
Member Avatar for ebiz

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

Member Avatar for peter_budo
0
3K
Member Avatar for nouryn

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

Member Avatar for Ezzaral
0
165
Member Avatar for ebiz

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

Member Avatar for peter_budo
0
153
Member Avatar for jackieblock

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

Member Avatar for ~s.o.s~
0
153
Member Avatar for babusek

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

Member Avatar for stephen84s
0
148
Member Avatar for sandawg

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

Member Avatar for Antenka
0
121
Member Avatar for Intelrate

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.

Member Avatar for Intelrate
0
98
Member Avatar for poggie

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

Member Avatar for stultuske
0
116
Member Avatar for johntayler

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

Member Avatar for stultuske
0
74
Member Avatar for laki234

even using indexOf(" "); propably could help you out. but what do you mean with "skip" read over them, erase them out of the String, ... ?

Member Avatar for ~s.o.s~
0
147
Member Avatar for goyofoyo

[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

Member Avatar for stultuske
0
93
Member Avatar for zatin

a String is an Object ... so, what exactly don't you get? how to compare your Person-Objects?

Member Avatar for ~s.o.s~
0
1K
Member Avatar for Laidler

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

Member Avatar for Laidler
0
174
Member Avatar for MxDev

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 :/

Member Avatar for dickersonka
0
98
Member Avatar for mahaboob Basha

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

Member Avatar for peter_budo
0
1K
Member Avatar for eve.olambo

[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

Member Avatar for stultuske
-2
125
Member Avatar for poggie

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

Member Avatar for stultuske
0
144
Member Avatar for BestJewSinceJC

what are we talking about here? :s two seperate applications or two seperate classes?

Member Avatar for BestJewSinceJC
0
93
Member Avatar for AdventureX

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

Member Avatar for vee_liang
0
114
Member Avatar for miso66

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

Member Avatar for miso66
0
158
Member Avatar for shubhang

[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]

Member Avatar for stultuske
0
259
Member Avatar for l_03

my guess would be an unchecked recursion as well, propably unintended. something like: [Code=Java] public String getText(){ return "The text is = " + getText(); } [/Code]

Member Avatar for stultuske
0
776
Member Avatar for khalidmehmood

did it seem logical to you to post this in the Game Development forum???

Member Avatar for Ezzaral
0
104
Member Avatar for khalidmehmood

[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

Member Avatar for Freaky_Chris
0
149
Member Avatar for Soloz
Member Avatar for nanosani

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

Member Avatar for stultuske
0
181
Member Avatar for AlbertPi

[QUOTE=Ezzaral;739953]Drive-by code snippet.[/QUOTE] that's what you get in 'tha H00d'

Member Avatar for AlbertPi
0
228
Member Avatar for gadisandeep

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

Member Avatar for Tyrone.Wilson
0
112
Member Avatar for dayotjawak

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

Member Avatar for stultuske
0
56
Member Avatar for detoxx

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

Member Avatar for sillyboy
0
268
Member Avatar for localp

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

Member Avatar for stultuske
0
66
Member Avatar for mahaboob Basha

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

Member Avatar for stultuske
0
280
Member Avatar for sachein

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

Member Avatar for stultuske
0
110
Member Avatar for ishaanviegas

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

Member Avatar for stultuske
0
92
Member Avatar for AsantaSane
Member Avatar for stultuske
0
999
Member Avatar for carlcarman

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

Member Avatar for carlcarman
0
160
Member Avatar for jessxe02

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 …

Member Avatar for ithelp
0
85
Member Avatar for localp

[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

Member Avatar for Ezzaral
0
124
Member Avatar for babusek

[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

Member Avatar for stultuske
0
120
Member Avatar for amaravanich

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

Member Avatar for stultuske
0
207
Member Avatar for localp

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

Member Avatar for stultuske
0
165
Member Avatar for mrjoli021

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

Member Avatar for stultuske
0
117
Member Avatar for l_03

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

Member Avatar for stultuske
0
139

The End.