| Thread | Last Post | Replies |
|
| Compiler Optimization | 01 Jan 2006 17:20 GMT | 4 |
Hello. This is more a question of curiousity than actually needing a performance increase. I was wondering if the Java compiler (I am using Sun's j2sdk 1.4.2_10) will change Math.PI * 2.0 into a constant in bytecode, or should I make a final
|
| J2ME MIDP 1.0 reading files outside jar /res ? | 01 Jan 2006 14:57 GMT | 6 |
I'm coding a simple cell phone application that reads a resource file as follows: InputStream is = getClass().getResourceAsStream("help.txt"); I was told,J2ME can read files outside the jar by specifying / before
|
| How to dedect 4 consecutive space | 01 Jan 2006 04:28 GMT | 5 |
I need to replace a tab for every 4 consecutive spaces for a statement which is included in an array. I've set another index array to mark whether the content is space, if the index become 4, if change to tab. But it seems hard to go back the previous index to delete the previous
|
| not printed | 01 Jan 2006 01:46 GMT | 3 |
I am using property file to get a rate revision date. When I first use the getServletConfig().getServletContext().getRealPath("ratecheck.properties"), i got the non-static method ServletConfig() can not be used in static
|