|
Advertisement
|
Forum posts by Charles Bell:Posted in Java Answers Forum, May 5, 2002, 6:39 PM
Also something may have happened with a new release of Java. Are you using any deprecated methods?Suggest you log into the developer connection at java.sun.com and look for bugs or post one on your particular problem.cURL is a Unix program. You can get the latest download at:http://curl.haxx.se/download.html
Posted in Java Answers Forum, May 5, 2002, 5:12 PM
Your problem may be how you are running your command.This program can be easily revised for Unix or Linux if needed. I no longer have a Unix or Linux machine to test it on. Check this out and see if anything in this source will help. I may have some other examples if I hunt around./* RuntimeDemo.java* @author: Charles Bell* @version: January 6,...
Posted in Java Answers Forum, May 5, 2002, 2:09 PM
Check out:http://java.sun.com/docs/books/tutorial/uiswing/mini/fourthexample.html
Posted in Java Answers Forum, May 5, 2002, 1:53 PM
Look at the code here:http://www.quantumhyperspace.com/SourceBank/ArrayPlay.javaIt may be just what you are looking for.What you need to do is create a new array from the old one by adding all elements except the one you are deleting. The new array would be one less in size.Then reassign the new array to the old reference.
Posted in Java Answers Forum, May 5, 2002, 1:45 PM
Check out:http://java.sun.com/docs/books/tutorial/uiswing/mini/fourthexample.html
Posted in Java Answers Forum, May 5, 2002, 7:47 AM
If there is still a problem. Please repost.
Posted in Java Answers Forum, May 5, 2002, 7:45 AM
class MyClass{}declares a class named MyClassthe word class is all lower case.the package java.lang has a class named Class.Instances of the class Class represent classes and interfaces in a running Java application.Class has no public constructor. Instead Class objects are constructed automatically by the Java Virtual Machine as classes are...
Posted in Java Answers Forum, May 5, 2002, 7:36 AM
/* ArrayListDemo.java*/import java.util.*;public class ArrayListDemo{ public static void main(String[] args){ ArrayListDemo demo = new ArrayListDemo(); ArrayList myarraylist = demo.load(20); demo.print(myarraylist); } /** Loads arrayList with n random int values. */ public ArrayList load(int n){ ArrayList arraylist = new ArrayList(); Random...
Posted in Java Answers Forum, May 5, 2002, 7:18 AM
/* ArraySort.java* @author: Charles Bell* @version: May 5, 2002*//** ArraySort*/public class ArraySort{ /** */ public static void main(String[] args){ ArraySort arraysort = new ArraySort(); /* An array of 10 integers. */ int[] intArray = {7,3,5,2,9,1,10,4,6,8}; System.out.println("Original Array"); for (int i = 0; i...
Posted in Java Answers Forum, May 5, 2002, 6:39 AM
Thanks for your encouragement. I really needed that this morning.Charles
Posted in Java Answers Forum, Apr 22, 2002, 10:19 AM
change the line: tt.append(line);to tt.append(line + "\n");
Posted in Java Answers Forum, Apr 22, 2002, 10:15 AM
You are using a very old version of the java development kit. (jdk1.1.8 was current about two years ago.) Suggest you try it with the latest or more recent version.
Posted in Java Answers Forum, Apr 22, 2002, 10:10 AM
/* SentenceProcessor.java* @author: Charles Bell* @version: Apr 22, 2002* Copyright ? 2002 QuantumHyperSpace.com* ** This program is free software; you can redistribute it and/or modify* it under the terms of the GNU Library General Public License as published* by the Free Software Foundation; either version 2 of the License, or* (at your...
Posted in Java Answers Forum, Apr 21, 2002, 9:22 PM
I think you need to read the whole file in to a string variable, then use the break iterator on the whole file string, counting each instance using the break iterator next() method until the break iterator ahs iterated to the the last occurrence.Something like the following maybe? This is an untested snippet. I've go to go. Hope it...
Posted in Java Answers Forum, Apr 21, 2002, 9:03 PM
No its not.I created an addPanel and a subtractPanel and added them to a new panel with its own layout so the addPanel and subtractPanel are side by side and at the bottom just as you asked.If this is still not it, perhaps you could be more specific?Anyway, if you want to solve your problem, I suggest you create JPanel components to hold the...
|