Question about ant and running java programs6129 (4/15/2007 2:19:51 PM) I'm trying to steer away from using an IDE so that I can learn more about the internals of how Java works. I've started using Emacs and Ant to write my code and compile it. What I am wondering is, based on th... printdude1968(96)
Netbeans and importing Package1334 (4/16/2007 6:46:29 AM) Hi, I am newbie to java and using Netbeans as IDE..I have created a project A having 2 packages A1 and A2 having java files. In my other project B which has package B1, I want to use classes from packages A1 a... aditi.hatwalne(8)
How does one find the terminal's width within the JVM?6399 (4/15/2007 7:47:57 AM) Other than assuming it to be a standard 80x24 terminal, is there a library call for it? The System class doesn't seem to have anything for it, and the PrintStream class doesn't have anything on it either. Am I ... zefria(15)
could i pls get sum hlp w/this???11138 (4/9/2007 10:01:08 PM) /** * @(#)MyClock.java * * MyClock application * * @author kevin * @version 1.00 2007/4/4 */ import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import ja... llloyd
Displaying a sin wave horizontally instead of vertically.13120 (4/14/2007 4:49:19 PM) I have a program that I wrote which displays a sin wave vertically down stdout public static void main(String [] args) { char[] starHolder = new char[200]; java.util.Arrays.fill(starHolder, '*');... printdude1968(96)
Is there a better way to do this?6186 (4/15/2007 2:34:08 AM) I want to pick six unique numbers between 1 and 49 100 times. I thought that rather than do some sort of fancy checking before adding a picked random number into an array that I would just keep picking 6 number... printdude1968(96)
java.io.InputStream converting bytes5140 (4/14/2007 4:40:58 AM) I've written a little FileInputStream class that returns byte values. According to the API, it should return int values between 0 and 255, or -1 when EOF is reached. I'm wondering the proper way to convert th... Brian
How do I get the address of (&) an object...14101 (4/10/2007 5:42:53 PM) I'm using a routine that I didn't write that reads data into a char array. The routine reads 64 bytes at a time. I need to read 256 bytes in total into one array. So I have this char myArray = new char[... me2
write excel from servlet3444 (4/5/2007 11:53:48 PM) Here is my servlet: public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ response.setContentType("application/vnd.ms-excel"); response.addHeader... finecur(29)
erothsh kodika java192 (4/13/2007 11:21:20 AM) public class Array{ int[] T; int n; /*constructor*/ public Array(int size ){ T=new int[size]; n=size; } /*add element into array*/ public void insert(int position,int elem){ T[position]=elem; } ... kertsalis(9)