- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
- Interests
- Java
Why this code fails.... ? [CODE] String a = "abcd/dgws"; a.replaceAll("/", "\\"); [/CODE] it results in ...... Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 1 at java.lang.String.charAt(String.java:558) at java.util.regex.Matcher.appendReplacement(Matcher.java:696) at java.util.regex.Matcher.replaceAll(Matcher.java:806) at java.lang.String.replaceAll(String.java:2000) |
|
Re:
How would you split an existing string where a chararacter occurs into an array of strings, and store that character in a char? For example, inputting 123a5 would return {123,5} in an array and 'a' in a char. I've confused myself with this. I will greatly appreciate any help. |
|
I want to develop a JAVA application which can send and receive SMS. I have a mobile phone connected to PC through USB cable. This JAVA program in PC should be able to send and receive SMS. AT commands are used to instruct mobile phone to send/receive SMS. But how … |
|
Re:
Hi, I need help getting the basic idea of how to begin writing this Strings program: file has last name(1word) & email address objective of prgm is to validate email address [LIST] [*]1 "@" symbol; no space left of it [*]1 "."; no space on both sides of it [/LIST] … |
|
content eg. 1. java.lang.String, 2. java.util.HashMap<Integer, Integer>, 3. java.util.ArrayList<Integer>, 4. java.util.HashMap<Integer, ArrayList<String>>, 5. java.util.HashMap<Integer, ArrayList<ArrayList<String>>>, I need a regex for matching method parameters in Java. I have tried with this one.. ([a-zA-Z\. ]+,)|([a-zA-Z\. ]+<[a-zA-Z\., ]+(<[a-zA-Z\., ]+>)*>[ ]*,) It is matching first 4 strings. But it is not matching 5th one, … |
|
Re:
I want to transfer data from mysql database to an msexcel sheet... Is it possible with java. how? |
|
There are many[COLOR="red"] [I]Java Decompilers[/I][/COLOR] which can decomile [COLOR="Red"][B][I].class[/I][/B][/COLOR] file to [COLOR="red"][B][I].java[/I][/B][/COLOR] file revealing the source. Is there any way to prevent this reverse engineering ? Like in .Net framework, once .dll or .exe is built, noone can reach to source code. ?:S |
|
What is the best approach of writing java code in following 2...... ? What happens at jvm level in each case ? 1. [ICODE] for(int i=0;i<10;i++) { MyClass m = new MyClass(); m.doSomething(); } [/ICODE] 2. [ICODE] MyClass m; for(int i=0;i<10;i++) { m = new MyClass(); m.doSomething(); } [/ICODE] |
|
I want to write a program , [COLOR="red"]JProgressBar [/COLOR]with [COLOR="red"]java.sql.Statement[/COLOR], where JProgressBar gets updated with Statement execution. i.e. I should get progress of Currently executing statement, so that i can set value of JProgressBar... Is it possible ? How to do it ? |
|
Re:
i have a jsp page which initializes itself from a database...it has a series of checkboxes that are being created from the database values...now once the user selects the boxes required by him i have designed a function dat reads the values from the checked fields n stores them in … |
|
I am confused in choosing JavaScript Framework for my Project. I can choose any one of the following frameworks........ [COLOR="Red"][B]EXT JS[/B][/COLOR] [COLOR="Green"][B]EXT-GWT[/B][/COLOR] [COLOR="Red"][B]YUI[/B][/COLOR] [COLOR="Green"][B]jQuery[/B][/COLOR] [COLOR="Red"][B]dojo[/B][/COLOR] and many more....... I don't have any knowledge of any of above all. I am going to start from scratch. But which one to choose … |
|
I m having many dataobjects (*.java)(having getters and setters) My requirement is that, I want to write a generic Method, which will accept argument as Object and will call all getters of that Object. Basically I want to write a log file with all dataobjects which are going to be … |
|
I am working on a JAVA project which needs to set the System date and time. I want to open Date and Time Properties of Windows through my Project. When I click on JButton, it should open Windows Date and Time Properties. How to do it ? Please Reply. |
|
What is the future of JAVA ? JAVA was overcoming Microsoft's .net because of it's platform independence. As in coming couple of years , Microsoft is going to launch a version of .net that will support all platforms like windows, unix, linux etc. Then will .net become trouble for JAVA … |
|
I am not able to open some websites. some sites are opening. what is the problem ? please help . I have run hijackthis and i got this log file : Logfile of HijackThis v1.99.1 Scan saved at 9:18:23 AM, on 9/29/2007 Platform: Windows XP SP2 (WinNT 5.01.2600) MSIE: Internet … |
|
I am doing Second year engineering. I am confused with where to go in IT field. I mean which software filed to choose like java, .net , oracle etc. etc. Can anyone help me to choose right field that will be evergreen and interesting as well as easier to learn … |
|
Re:
Dear All, I have Pentium V 3.0 Ghz Hyper threading system with 915Gav mother board and 256mb of ram. While system was working fine until one day when i started the system and screen was blank with only green light on the monitor blinking. I troubleshooted all the possible things … |
|
I am not able to use my usb pen drive in My Computer. I have windows XP sp 2 installed. Whenever I plug my pen drive, it directly shows "safely remove" icon in the taskbar. My Computer does not show USB drive letter. If I want to access the Pen … |
|
I am not able to use my usb pen drive in My Computer. I have windows XP sp 2 installed. Whenever I plug my pen drive, it directly shows "safely remove" icon in the taskbar. My Computer does not show USB drive letter. If I want to access the Pen … |
|
I am computer engineering student. I am new here. I hope this community will help me a lot to be successful in IT industry. |