No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
13 Posted Topics
Hi, I'm trying to use the replace() method to take out all instances of " " , (space) with an underscore, ("_"). I'm doing this because I'm using URLs to connect to a servlet. I keep getting this error: [code] replace(char,char) in java.lang.String cannot be applied to (java.lang.String,java.lang.String) url.replace(" ", …
Best bet is to download a development enviroment like JCreator or Eclipse and find some online examples. Really depends on what you want to do with java. There's plenty of books on Java that you can get from a library or buy online.
Hi, I was asked to rebuild a compaq nc6000, (reformat disks, reinstall XP Pro and software) Since the rebuild I haven't been able to connect the laptop to the domain. I get the following error: <quote> A domain controller for the domain (DOMAINNAME HERE) could not be contacted. Ensure that …
I am working for a small firm which is uses an XP/SBS 2003 backbone. Some of the users require off site access to their mail (exchange) and used webmail to do so. Unfortunately, there's a cert error. I think it's for two reasons. Firstly, the cert is issued by the …
Hi, recently I decided that I wanted to break away from just using the Windows OSs, (I'm an IT graduate and want to expand my tech base). I picked up a copy of Ubuntu and decided that the best way to go about it would be to partition my hard …
You could take the long and write it to a string, eg [code] ling a = 1234567; String s = a; [/code] Next use substring to get the various digits out, eg [code] String mySubString = s.substring(0, 1); int newInt = mySubString; [/code] You could then work with the number …
I'm writing a Java ME app that will access servlets on a tomcat server, (version 5.5) and I'm having a problem. In my client I'm trying to use a HTTP connection to the servlet, like so: [code] if (command == select && currentForm == login) { HttpConnection connection = null; …
You could try placing one or more "\t" between each value. That way your code will be spaced evenly. eg: [code] String s = "Hello"; s += "\t"; s += "how are you"; [/code] It will print like so: Hello____________how are you (there will not be any underscores, ("_") in …
Hi I'm trying to write a multi-formed J2ME app. I keep getting a null pointer exception in the startApp() method. [code] public void startApp() { display.setCurrent(currentForm); } [/code] I have currentForm created above and the first is mapped to it, (with the plan of mapping each new from to currentForm. …
You need to import the java math package, (import java.lang.Math) use the method sin(). It takes doubles. Eg. [code] double x = //something double answer = sin(x); answer = 2*answer - 1; [/code]
Hi, I'm trying to write some code to connect my MIDlet to a database and I keep getting this compile error: package javax.servlet does not exist It does infact exists and I just can't figure out why I'm getting this error. :confused: What am I donig wrong? Thanks, chuck
Hi I am trying to write a simple J2ME application, (I've only started learning it), and am getting the following error: Unable to create MIDlet null java.lang.NullPointerException at com.sun.midp.midlet.MIDletState.createMIDlet(+29) at com.sun.midp.midlet.Selector.run(+22) I don't know what's wrong. Any suggestions would be greatfully received. My code is as follows: [code] import javax.microedition.midlet.*; …
Hi, I am writing a little GUI application and I want to set them up, so that they have a Windows look and feel. So far I can't seem to find anything workable.
The End.
mr.sweetchuck