32,204 Topics
| |
When a variable goes out of scope in Java, is it immediately removed from stack and one strong reference to the object it pointed to removed ? | |
I have imported the Apache XML-RPC jar files, and got them working (has taken me all day to figure out how to get it working - so I'm kind of frustrated at the moment ;D) ... but that used the execute(..) method which requires two parameters ... there was no … | |
only 1 error. the compiler says it 'cannot find symbol' in the line of code approximately 12 rows down that reads "Payroll employee = new Payroll();". Thank You[code]import java.util.Scanner; // Needed for the Scanner class public class PayrollDemo { public static void main(String[] args) { //Declare vaiables String name; int … | |
Hello. I want to convert a byte[] array to a string, then post it on JTextArea without having it do this: [url]http://img706.imageshack.us/img706/3342/outputc.jpg[/url] [url]http://yfrog.com/jmoutputcj[/url] [url]http://yfrog.com/5soutput2j[/url] [url]http://img208.imageshack.us/img208/7049/output2.jpg[/url] Any ideas??? | |
I'm having problems figuring where I need to go next in this project to create an applet from this application... any suggestions where I should start (in layman's terms)? [CODE] import javax.swing.*; public class storageSP { public static void main(String[] args) { //declare variables float res; String kfilm; String sfps; … | |
I am attempting to access an XML-RPC API method using a Java client. I'm fairly certain that the server is written in Python. The API is part of the wiki farm Wikidot.com API info: [url]http://www.wikidot.com/doc:api[/url] API method info: [url]http://www.wikidot.com/doc:api-methods[/url] Does anyone here know what the equivalent of this statement is … | |
Hi, I need help getting started on this program: Write a sort method that uses the bubble- sort algorithm. The bub-ble- sort algorithm makes several passes through the array. On each pass, suc-cessive neighboring pairs are compared. If a pair is in decreasing order, its values are swapped; otherwise, the … | |
hey there, I have two pieces of code that I expected would behave the same. However, what I noticed is that one of them works fine, the other does not at all. I need help from someone experienced to explain what's going on under the hood. the code that does … | |
Hi! I have a problem with a binary tree programing (AVL)where I have to check if it is or if it isn't balanced.... I have made a start but I know it isn't right... [CODE] public boolean isBalanced() { boolean balanced = true; isBalanced(root, balanced); return balanced; } private void … | |
hi im a beginner in Java i have make a simple program using the JCreator LE but when i execute file the error below is shown in the command prompt Exception in thread "main" java.lang.NoSuchMethodError: main may i know what is the matter? thank you in advance | |
Hi. I got a noobish question: Is it possible to return an array "directly", so, something like this. [CODE] public int[] getArray(){ return int[]{this.intA, this.intB}; } [/CODE] I know I can just make the array first. But does this not use unnecessary cpu time and memory? This is going to … | |
how to make a program run when an external device is plugged in???(program run from the computer not an autorun from the flash) | |
im trying to write a program to make the # someone puts in the prompt multiply this # by 7 how do i make this code ? i have result=Math.pow(number,7); but it does not give me the right answer... m | |
Hello I am new to Java & I have made a simple mortgage interest calculator. [b]I am looking for advice on my program such as:[/b] [i]- Proper java structure - Better more efficient ways of doing what I am doing below - Proper java format(variable names, function names) - Are … | |
Hello Everyone! I have a question about Java ME SDK 3.0 It is that I was running a project which connects my mobile with a bluetooth module(mobile is server) then mobile sends data to another mobile in an SMS.I run the code then building is successful then I donot know … | |
This code is SkipList sort Min to Max. How to convert this SkipList to sort Max to Min.?? [B]File : SkipList.java[/B] [code]/** Skip List Using integer key */ import static java.lang.Math.*; public class SkipList { private static final double PROB = 0.5D; private static final int MAX_VALUE = Integer.MAX_VALUE; private … | |
Hi I'm new to Java. I always knew that it is possible to generate multiple text files out from an Excel sheet using Java but never knew the tool and how is it used. Im working on Cisco equipments and Im demanded to generate 100s of configuration templates for the … | |
I want to write a java program to read in two integers and then output a random integer number generated between these two integers. Is there any tips? Is there a random Java API (libraries) that I could use? Tks. | |
i am vani doing 3rd year. i need to do a mini project. so i need a topic for suggestion. please do help me. | |
Ok so i'm writing a chat program. My problem is that let's say i write something in the client or server, you only see it once you write something again. How do i make my program refresh it's self? (so it prints things in real time.) Thank You Client Code: … | |
Hi all, i want to ask opinion,advice or mayb solution to my problem. i want to add data from this object to an ArrayList<string>.this is my code: [CODE] class Main { static ArrayList<String> test_case_list=new ArrayList<String> (); public static void main(String[] args) { //do argument.... TestCaseGenerator(s,count,test_suite_list); display_list("Final Result",test_suite_list); } private final … | |
Hi there, I am currently doing a bioinformatics project on dynamic programming. I need to read a text file, and extract the information in it and use the information in it for my dynamic programming java codes(both java codes must be together). May I know how to extract the information? … | |
How can we know whether the print job print the page successfully or not(on printer).......? | |
Hi I had a few quick questions about this program that I'm just about to write. The program itself looks fairly easy, for the calculation I'm not so sure. Problem Statement: We have been hired to write a program to determine the number of cases required to store boxes of … | |
hey guys ...i m making a project of "CHESS GAME"..... in which to identify any pieces of chess board ,i had used described mechanism....(see code of array) ... but it actually not working...it takes garbage value...it is working only for the "Rook"... i can't understand this behavior...so plz help me … | |
How do I integrate a visualizer(Jmol) with my java(JCreator)? Can anybody give me the codes or explain it to me as I'm very new to the world of java. Thanks~! | |
What is BioJava? Is it an application? Can it work with Jcreator to create my own program? | |
In the code below, I don't understand why the diference in elapsed time calculated with System.currentTimeMillis() is different tm.getCurrentThreadUserTime() The elapsed time in millisecond is always a value like 23 or 14 while time calculated with tm.getCurrentThreadUserTime() is always 0 . I know one is milli and the other is … | |
Hi everybody, I would like to use a XYBlockchart with the following features: 1. Highlight square when mouse is over it 2. Show tooltip (which is simple, as far as I know - just setting a flag == true) 3. Open an additional frame with a graph by double-clicking on … | |
please help me out |
The End.