3,927 Posted Topics

Member Avatar for raul28

[quote=hbk619;466272] O I C. Don't ask why I typed like that. O_o[/quote] Were you educated in the southern US? Perhaps you recall it from the reading test: [code]L.A. (Lower Alabama) 12th Grade Reading Test Test 1 Test 2 MR DUCKS MR SNAKES MR KNOT MR KNOT. MNO SNAKES. SAR OSAR …

Member Avatar for scru
0
130
Member Avatar for piers

[quote]just cant seem to get moduleId and module name to print out in my driver file. this is the driver file[/quote] Because, as Masijade already told you above, you have set all your variables to empty strings in that constructor and you haven't set values for them in your "driver".

Member Avatar for piers
0
173
Member Avatar for >shadow<

I can remember in college when the first visual browsers were starting to show up (Mosaic being the first). Most everything available was just text. Not long after, everyone and their dog was creating useless personal home pages with animated gifs, music, and links to crap that no one else …

Member Avatar for hollystyles
0
378
Member Avatar for thejunkie

Yes, to test for string equality you need to use equals() or equalsIgnoreCase(). There are more fundamental problems with what you have written there though and it will not compile. Re-examine the basic structure of 'if' statement blocks.

Member Avatar for ~s.o.s~
0
3K
Member Avatar for #1Basser

[quote=#1Basser;464973]I am new to java and having issues... I am using this code as an example but when I try to view it all I get is a blank screen. Can someone tell me what to write in my notepad to view the applet. I have this now <html> <head> …

Member Avatar for #1Basser
0
105
Member Avatar for smzuber

Well, it's difficult to speculate from a general perspective on a specific implementation such as OracleConnectionCacheImpl . Have you tried searching any Oracle forums specifically for mentions of that behavior? Are you promptly releasing connections when they are no longer needed? Is this a checked exception that you should be …

Member Avatar for jwenting
0
448
Member Avatar for xs.gautam

[quote=xs.gautam;465458]do u have any idea abt the cost & duration in completion of this project ?[/quote] That would depend completely on how you implement it and your own abilities to do so.

Member Avatar for xs.gautam
0
109
Member Avatar for Alekha

Not without specific questions they couldn't. It also sounds like something more appropriate for the JSP forum.

Member Avatar for Ezzaral
0
112
Member Avatar for rwagnes
Member Avatar for DeadJustice

You need a variable of type Year to hold that value in the Student class. Your constructor would also pass a Year value instead of a String. toString() can access the getGradeLevel() method of the enum value to display the string representation you have given those constants.

Member Avatar for DeadJustice
0
191
Member Avatar for rrm089

Because all of your return statements are in conditionals (the "if"s), there is not a guaranteed return path. Instead of putting the returns in the if clauses, make a variable to hold the calculation and make a single return of that value at the end of the method.

Member Avatar for Ezzaral
0
238
Member Avatar for hemmysoft

Also, instead of using the numerical values here to evaluate the dialog result[code]//This case handles the "Yes" button, when pressed. case 0:[/code] use JOptionPane.YES_OPTION and JOptionPane.NO_OPTION. Those constants are there for a reason. You wouldn't need a comment to explain [code]case JOptionPane.YES_OPTION:[/code]

Member Avatar for Ezzaral
0
105
Member Avatar for Triggerhappy41

[quote=Triggerhappy41;462956]Now I'd like to be able to set up a scrollable GUI, but I have no idea where to start. I know JScrollPane and JScrollBar are involved, but searches on the two have come up with nothing as far as tutorials go. Does anyone have any links to a good …

Member Avatar for Ezzaral
0
119
Member Avatar for The Dude

Well, yeah it's ridiculous - if you wave your arms and point at only part of the story out of context. When you include this part [quote] Her next-door neighbour, a city police officer who was off-duty at the time, asked her to keep it down, police said. When she …

Member Avatar for Ezzaral
0
96
Member Avatar for Dave Sinkula

[quote=Salem;403671]Planned by bush and his cronies - not a snowball in hell's chance. Allowed to happen through incompetence and inaction of one or more previous administrations - pretty likely. Caused by US foreign policy which continues to honk off a large majority of the worlds population with it's "we're all …

Member Avatar for jwenting
0
517
Member Avatar for zandiago

Perhaps he meant [url]http://uncyclopedia.org/wiki/Assburger%27s_syndrome[/url] :)

Member Avatar for iamthwee
0
218
Member Avatar for Dave Sinkula

I agree, marijuana should be legalized. Salem already posted most of the reasons for this and I agree with them. Alcohol is far more harmful than marijuana will ever be.

Member Avatar for scru
3
778
Member Avatar for MidiMagic

[quote=lasher511;459141]None of those are actually proof that pot is causing this stupidity or evidence to support the argument that it should not be legalized.[/quote] Yep, pot smokers don't have a corner on stupid behavior. Perhaps Midi can compile a comparison list of stupid things done by people who haven't smoked …

Member Avatar for Ezzaral
0
389
Member Avatar for Ezzaral

The user task bar at the top is showing an unread PM, however no unread PMs appear in any of the message lists. After a contact list invitation appeared, it showed 2 unread where it was 0 unread before, so that may have caused the discrepancy somewhere.

Member Avatar for Dani
0
129
Member Avatar for speterson

You need to keep a vector of vectors for this. The main vector to hold a vector for each team. The team vector would hold the score of each game the team has played. Averaging these by game and team is then just a matter of nesting the inner and …

Member Avatar for Ezzaral
0
2K
Member Avatar for Ortal

Your class name needs to match the file name. You have named the class Main put placed it in midterm1.java from the looks of it. Side note: You really could use some more white space to separate your methods and logical sections within the methods. It will make it much …

Member Avatar for Ortal
0
114
Member Avatar for kahilw

You want it to place them on the form or just create and return them? Having three methods that only differ in the setBounds() parameters is just unnecessary code duplication and none of those methods places anything. If you just need to create and return the three buttons, your method …

Member Avatar for jwenting
0
83
Member Avatar for java_starter

Cannot find symbol means that it can't find a class,method, or variable that you have used. It could be that you misspelled something (watch capitalization, Java is case sensitive) or you are calling a method that does not exist on that class. These are very basic error messages. Look at …

Member Avatar for Phaelax
0
535
Member Avatar for craigmckeeman

Well, the verification is occurring in BasicFileChooserUI.ApproveSelectionAction. If it's really worth it to you, you might be able to extend the necessary classes to provide an interruptible threaded implementation, but it might get stickier than you expect. I don't know all of your requirements, but it might be more straightforward …

Member Avatar for Ezzaral
0
121
Member Avatar for noellieb

Collections.BinarySearch returns the index in the list where the item was found. If you need to return the object then return [ICODE]list.get(index)[/ICODE]. Your foreach loop around the search call doesn't make much sense though. For a given path, it's a single call to locate it within the list. Also, sorting …

Member Avatar for Ezzaral
0
110
Member Avatar for kalaiselvi.v

You are sending the post request, but not reading the response. See the following example: [url]http://www.exampledepot.com/egs/java.net/Post.html[/url]

Member Avatar for Ezzaral
0
137
Member Avatar for rohoni

Well, I'm not a boby (booby?!), but here's an example: [url]http://www.exampledepot.com/egs/java.applet/LoadImageApplet.html[/url]

Member Avatar for Ezzaral
0
81
Member Avatar for java_starter

It clearly says "not a statement". You need "."s between the object reference and methods to make those valid.

Member Avatar for Ezzaral
0
139
Member Avatar for ceyesuma

Honestly, this is almost impossible to read and follow. Reading and following this may help a bit: [URL="http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html"]Code Conventions for the Java(TM) Programming Language: Contents[/URL] The functioning of the methods and their names are just too non-intuitive to wade through. If you can post the relevant lines where you are …

Member Avatar for ceyesuma
0
160
Member Avatar for Grub

This is natural behavior for floating point numbers. They are a limited precision representation of a decimal value and you should not expect them to be an exact result. This is why they should not be used for financial calculations which require perfect precision.

Member Avatar for eranga262154
0
86
Member Avatar for babyfrostie

[quote=babyfrostie;451573]waa.. i dont know understand about public String getText()... can you give me a sample of it?? this is my action for the PRINT button: [code] public void actionPerformed (ActionEvent e) { if(e.getActionCommand()=="PRINT") { String temp=""; temp=rice1.getText(); output.append(temp); rice1.setText(""); } [/code] not working though :([/quote] That's because your button says …

Member Avatar for babyfrostie
0
311
Member Avatar for The Dude

Heh, missed me by quite a bit. Most of the questions didn't have answers which fit. So it's batting a whopping zero so far.

Member Avatar for hbk619
0
47
Member Avatar for rishiraj_bayerd

[quote=George87;460093]Do you have any idea from where I can get some mock exams?[/quote] Yes. One idea comes directly from Google [url]http://www.google.com/search?hl=en&sa=X&oi=spell&resnum=1&ct=result&cd=1&q=sun+java+practice+exams&spell=1[/url] A little initiative on your part would have discovered that very quickly. Professional programmers seldom have solutions directly handed to them, which is something worth pondering if you are …

Member Avatar for Ezzaral
0
210
Member Avatar for uonsin

array[16][1][3] is of no practical use. Why nest the third level under a second level that only contains a single item? You are just making more work for yourself and creating potential problems by doing that.

Member Avatar for Ezzaral
0
75
Member Avatar for Grub

There are some system-specific ways to do it, but it's not really the place of System.out.println() to do that.

Member Avatar for jwenting
0
70
Member Avatar for gerik

You may have not set the environment variable correctly. Check the manual pages for your OS [B]javac(1)[/B] - Manual page [ [URL="http://java.sun.com/javase/6/docs/technotes/tools/solaris/javac.html"]Solarisâ„¢ Operating System[/URL] | [URL="http://java.sun.com/javase/6/docs/technotes/tools/windows/javac.html"]Microsoft Windows[/URL] ].

Member Avatar for Ezzaral
0
129
Member Avatar for abar_sow

[quote=abar_sow;459153][code] if( m.group(2).equalsIgnoreCase("NN")) { list = m.group(1); Set<String> s = new HashSet<String>(); if(!s.add(list)) System.out.println("Dups" +list); return list; } [/code] list is a variable tat contains list of strings. I want to check duplicates in that variable. but here its not printing any.. Can anyone figure or suggs pls.[/quote] "list" looks …

Member Avatar for Ezzaral
0
114
Member Avatar for sugar_sugar
Member Avatar for jwenting
0
32
Member Avatar for princevijay
Member Avatar for Ezzaral
0
37
Member Avatar for Lardmeister
Member Avatar for Lardmeister
Member Avatar for Attila.Both

[quote=Attila.Both;458327]Hi! [B] Did you get your answer already to this faultString[/B]: The value of the 'http://www.w3.org/2001/XMLSchema-instance:type' attribute must be namespace-qualified. exception???? Please let me know, Attila[/quote] Nope, not yet. Did you? That seems more relevant. Have you tried a Google search on XML schema namespace in the 11 days since …

Member Avatar for Ezzaral
0
67
Member Avatar for sharmila12

[quote=sharmila12;458333]hello i am sharmila i have small doubt about php and mysql.please anybody reply me.[/quote] Step 1: Ask in the PHP forum.

Member Avatar for Ezzaral
0
38
Member Avatar for zandiago

[quote=zandiago;458342]..in other words, i heard that the two languages are similar and are different in other respects(such as speed and efficiency). What i was reffering to was are the commands the same, headers, mathematical calculations...ect....I didn't need you to convert the entire program...i'm not studying java.[/quote] You heard correctly - …

Member Avatar for Ezzaral
0
180
Member Avatar for WVTraveler1

Well, if you don't start your while loop within a comment, it will probably exit as you expect.[code] boolean stop = false; //controls if loop below executed [B]while (!stop)[/B] {[/code]

Member Avatar for Ezzaral
0
142
Member Avatar for thekashyap

Yes, it would be good to have a thread for this stickied at the top like some of the other Software Development forums.

Member Avatar for Ezzaral
1
893
Member Avatar for kukushkin
Member Avatar for The Dude

[quote=Lardmeister;455108]Here you go with your insults again! You are a grown man Dave, come up with something of your own, and leave that Nazi stuff at home! "Tell a lie often enough and it becomes the truth!" wasn't meant as advice, it was a warning by Carl what competitors might …

Member Avatar for Lardmeister
0
177
Member Avatar for csy

lasher511's translation made as much sense. Hooray for irrelevant gibberish.

Member Avatar for Lardmeister
0
137
Member Avatar for tlgkumar

Have you already read the JScrollPane API document and the tutorial on how to use scroll panes, which is featured prominently at the top of that API doc?

Member Avatar for Ezzaral
0
48

The End.