2,443 Posted Topics

Member Avatar for mibit
Member Avatar for cullguy
Member Avatar for peter_budo
0
169
Member Avatar for ajithraj
Member Avatar for curtissumpter

Debug the code to find the actual type number returned and what it equates to. If you don't know how to use the debugger then print out the varying types at the top of the method as follows [code=Java] System.out.println("Integer TYPE: " + Types.INTEGER); System.out.println("Float TYPE: " + Types.FLOAT); ... …

Member Avatar for masijade
0
128
Member Avatar for Zass101

Maybe you can get one of your fellow grade schoolers to do it for you for that price. If you multiply the price by ten, you may get some semi-competent unethical "working person" (I won't say professional) to do that simple thing for you, but I wouldn't expect quality, even …

Member Avatar for peter_budo
-3
222
Member Avatar for Olsi009

Your problem, is that with a JDBC connection [code] Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/","root",""); [/code] You [i]must[/i] provide a db instance. Since you're connecting with root, anyway, use "mysql". But, I would advise against using this, [i]and[/i] against using root. Connect to test. [code] Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root",""); [/code] I would …

Member Avatar for Olsi009
0
157
Member Avatar for trombadorez

And don't forget to acknowledge the help you received here to your instructor, ah, I mean friend, of course. ;-)

Member Avatar for BestJewSinceJC
0
82
Member Avatar for ravikiran032

Those are [i]not[/i] tcp/ip commands. Those are simply executables (of whatever form) for a specific OS whose purpose just happens to be in listing/verifying/modifying interface/network information. In any case, [i]every[/i] language has the ability to perform (at least most) of those actions, just not in a one method "here you …

Member Avatar for masijade
0
79
Member Avatar for neha_p
Re: JAVA

Are you [i]actually[/i] asking us what you should include on your resume to fake one years experience in Java?

Member Avatar for verruckt24
0
98
Member Avatar for satin

Every IDE available that allows the development of Web Applications, have an option to create a "war" or "ear" file of the application, which then needs simply be imported by the web container / application server in question. There is no need for any type of Windows style "installer" program.

Member Avatar for masijade
0
87
Member Avatar for satin

Your "web application" should, obviously, be deployed to a web container, and then, as long as the app is set to "autostart" in that container, starting that container will start that app (and the container usually does have "an exe", as you all like to say). If you have a …

Member Avatar for masijade
0
81
Member Avatar for pao09

Use the "getters and setters" properly? If you show your code (and use code tags), we could probably give a better answer.

Member Avatar for pao09
0
111
Member Avatar for hidash_in

You [i]need[/i] to [i]use[/i] a session to keep track of what the user has entered, then during the loading of each page, you can check whether a session key exists for that question, and if so, check the radion button for that answer checked. Peter's answer was a suggestion of …

Member Avatar for masijade
0
305
Member Avatar for petike

I am quite sure that you can, the question then is, however, "Will the monitor/graphics card support it?" And the answer to that is "Probably not".

Member Avatar for masijade
0
101
Member Avatar for TechnoArt

[code] int answer; System.out.print("Please type a number < 1 for Ali, 2 for Ahmad, 3 for Ah Chong, 4 for Muthu, 5 for Ramasamy >: "); if(answer == 1) [/code] Where, above, do you give "answer" a value? The answer, you don't. I assume you want to read user input …

Member Avatar for masijade
0
164
Member Avatar for ganmo

You would need to occassionally "poll" the DB (and hopefully you have a timestamp field to make it "easy").

Member Avatar for masijade
0
113
Member Avatar for abhi_elementx

Could we see the "AppStarter" code. At least the constructor, and the setIconImage method (if you have overridden it).

Member Avatar for abhi_elementx
0
194
Member Avatar for Upsilon
Member Avatar for BestJewSinceJC
0
287
Member Avatar for VernonDozier

See if you can spot the reason. If you can't just ask. ;-) [code] import java.awt.*; import javax.swing.*; public class GridBagExperiment extends JFrame { JPanel redPanel, bluePanel, greenPanel, yellowPanel; double col1Weight = 0.4; double col2Weight = 0.2; double col3Weight = 0.4; double row1Weight = 0.4; double row2Weight = 0.6; GridBagConstraints …

Member Avatar for VernonDozier
0
405
Member Avatar for peter_budo

I would have done it this way (as long as you can modify the Vector passed in, conceptually, as technically you can). [code=Java] // could also be void, make Vecotr so that it can be "chained" public Vector sortContacts(Vector v) { for(int i = 0; i < v.size() - 1; …

Member Avatar for peter_budo
0
335
Member Avatar for hkansal

Give it a try, but remember that if you need to retreive the "rows" from the Map in the same order in which you inserted them, then make sure you use a LinkedHashMap, and not a standard HashMap or TreeMap

Member Avatar for masijade
0
89
Member Avatar for rpjanaka
Member Avatar for dep.new

No, there isn't. It sounds like you're talking about operator overloading, which Java, by a conscious decision, does not have.

Member Avatar for javaAddict
0
298
Member Avatar for curtissumpter

I think you want [code] final JScrollPane scroller = new JScrollPane(); [/code] and not [code] final JScrollBar scroller = new JScrollBar(); [/code]

Member Avatar for curtissumpter
0
586
Member Avatar for Donny 619

Well, seeing as how we have no idea what you did, we have no idea what's wrong with it.

Member Avatar for verruckt24
0
136
Member Avatar for masijade

[QUOTE=madhavireddy]Hi, I am new to java I have a project to be done with early deadline. Can u please help me how to write code in java to send GET request to server from client. Thank you in advance.[/QUOTE] So, you accepted a job you're not qualified for, or you're …

Member Avatar for madhavireddy
0
128
Member Avatar for rinko

What are you talking about? Look up HttpURLConnection in the API or HttpClient from apache. And, no, neither of these things will give you finished code to simply execute and do what you want. Nothing ever will. Both of these are APIs, of which you can search and find tutorials …

Member Avatar for madhavireddy
0
313
Member Avatar for usama
Member Avatar for AirmanTheGreat

Try making a "smaller" try/catch block (i.e. only around the "pIndex =" line). Edit: And, that way, you can, of course, simply do nothing in the catch block (although you would, normally, at least log the fact that the exception occurred, even if you don't do anything about it).

Member Avatar for AirmanTheGreat
0
82
Member Avatar for MAJORG
Member Avatar for add4

Start the program with an administrator user and don't give the users administrator privileges.

Member Avatar for masijade
0
73
Member Avatar for Miyuki Suzuki

Why a collection. Why not directly to a DB, or, worse case scenario, a file (i.e. randomaccessfile)? In any case, 65k is [i]not[/i] much. You could simply increase the maximum heap size.

Member Avatar for Miyuki Suzuki
0
146
Member Avatar for Miyuki Suzuki

[code] package whatever; public class Read { String DATE_FORMAT_NOW = "yyyy/MM/dd hh:mm:ss"; SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW); long starttime = System.currentTimeMillis(); String timeS = sdf.format(new Date(starttime)); void readFile(String fileName) { System.out.println(">> time of exe: " + timeS + " milliseconds: " + starttime); BufferedReader br = null; try { br …

Member Avatar for Miyuki Suzuki
0
105
Member Avatar for amarjeetsingh
Member Avatar for gabec94

You want to assign "largestSoFar" to "secondLargest" before you assign "number" to "largestSoFar", but within the same if block.

Member Avatar for masijade
0
236
Member Avatar for JP_L

Use tomcats connection pool and add the Driver jarfile to either shared/lib or common/lib (whichever is more appropriate or still exists in that tomcat version) as per the tomcat documentation.

Member Avatar for JP_L
0
413
Member Avatar for G-to-the-RIZZLE
Member Avatar for muskan

[QUOTE=muskan;487747]thanx to all of u friends. mt problem was solved by putting connector :mysql-connector-java-3.0.16-ga-bin.jar in jdk ----jre folder in lib----ext[/quote] Which is exactly the wrong place for it. Never place third party libraries here. [quote] and also copy it in tomcat---lib.[/QUOTE] tomcat/common/lib is the proper place (or is it tomcat/lib/common, …

Member Avatar for masijade
-1
207
Member Avatar for rajeesh_rsn

Most likely those "pages" are pre-generated and then accessed statically (although I didn't look at them, but if they are suppossedly "huge", and still load in the millsecond to 2-3 second range, then this is about the only possibilty).

Member Avatar for samarudge
0
410
Member Avatar for prashant1111

[url]http://java.sun.com/docs/books/tutorial/networking/index.html[/url]

Member Avatar for masijade
0
63
Member Avatar for erdomester
Member Avatar for erdomester
0
1K
Member Avatar for nikhil.laghave

They don't have a full environment. Set the environment variables you need (such as PATH) in the script.

Member Avatar for masijade
0
118
Member Avatar for prushik

Actually do [inlinecode]sudo test ....[/inlinecode] rather than [inlinecode]sudo [ .... ][/inlinecode]

Member Avatar for prushik
0
163
Member Avatar for VinceAshbySmith

You need to check how long the last line is before you write it, then use seek to back up that amount.

Member Avatar for masijade
0
79
Member Avatar for get2tk

Modulus. It produces the "remainder" from a division. I.E. 10 % 3 returns 1 and 11 % 3 returns 2 and 12 % 3 returns 0.

Member Avatar for masijade
0
80
Member Avatar for SSagar

When you add the keys, upper case them, and then uppercase the "search" key when retrieving one. Otherwise, you are going to have to loop through the keys yourself using equalsIgnoreCase to find the right key.

Member Avatar for masijade
0
99
Member Avatar for T'Scoopz

[code] Set<Object> check = new HashSet<Object>(); for (Whatever sNum : s) { if (!check.add(calculation(codeword, sNum))) { // whatever } } [/code] There is no reason to call this "calculation" method multiple times for the same "sNum" (that is [i]extremely[/i] ineffecient), and the add method of Set will return false, if …

Member Avatar for masijade
0
104
Member Avatar for campuzcrazyness

I will be very positive when I tell you that we are not just going to do it for you. Tell us [i]exactly[/i] what problem you are having and we will help you correct it, otherwise, [url]http://www.rentacoder.com/[/url]

Member Avatar for stultuske
0
428
Member Avatar for mps727

What are you using to compile? If you are using an IDE, then you need to add that jar as a library in the project properties. Edit: As [i]that[/i] is the CLASSPATH for an IDE. The System CLASSPATH is good for almost nothing, anymore. Do the following concerning classpaths 1. …

Member Avatar for mps727
1
139
Member Avatar for gcr007

[QUOTE=gcr007;825932]I need how to create a java file dynamically.Also i need to add my own methodes,attributes etc to it and save this java file to a specific directory.[/QUOTE] Once again, you are describing a means to an end, would you care to illuminate what the "end" should be? I.E. What …

Member Avatar for masijade
0
133

The End.