32,205 Topics
| |
[COLOR="Red"][B]i am opening an application using java through a batch file. when i am clicking the batch file the file download dialog box is opening . i dont need to open the dialog box without that dialogue box the file should be open. pls help advance thanks and regarda[/B][/COLOR] | |
Hi all, I am working on a program which will generate a log file for it's operation. Because of the way the program is designed, the program maintains a String variable for all the log that needs to be written and write that string into the file at it's exit. … | |
Hi there, I have just started using java and have gained a bit of knowledge in it to start making small programs to run in cmd. I have recently been making one to determine which, of 4 objects, can reach a random point in a 1km square. I have managed … | |
Hey, Im having a problem getting my applet to repaint after it is resized. + and - buttons resize it but sometimes it wont get bigger or repaint. here is the src for the applet [code=java] private ArrayList<CompareColor> myColors; private ArrayList<CompareColor> fixedColors; private int w=0; private int h=0; private int … | |
I am a newbie to java. I have heard that Java is a programming platform. Did it mean than it can work both in Windows and Linux. Or if it doesn't ,what does a programming platform mean to be? | |
Hi I am doing a vending Machine application. Now I can insert denominations from 5 10 20 50 1pound and 2 pounds. Is there a way of filtering the most efficent coin combination to pay for the snack. e.g. I have a snack for 45 pence. I insert 2 pounds … | |
I'm newbie in Java please help. 1. Create an array with 20 elements.. I know this. This one i don't know.. 2. The program must ask the user to input an element to search for and prints a message: "Found[search key]" then print the remaining data on the next line … | |
I have a HashMap with String keys and Integer values. I want to get a string with the String keys in numerical order of their String values. eg. if I have Orange=1 apple=4 pear =2 grapefruit=3 I want the following String apple, pear, grapefruit, orange. I'm not sure how to … | |
I'm trying to write a simple program to identify if two phrases are anagrams of one another. I'm having trouble with sorting an array of characters and defining xarray and yarray. [code] public class Anagram1{ private String x; private String y; private char[] xarray; //? private char[] yarray; //? public … | |
I need to this program to let me enter in an letters A B C or D so this program can run, why isn't this program not working, please help. Here is my code: public class DriversLicense{ public static void main(String [] args) { //Students answers to the questions char … | |
Hi, I am a first Year Computer Science student learning java. First, what I want help with is not a homework assignment, I just started it on my own. This program is supposed to test the "Chaos Game" The chaos game is explained here: [URL="http://mathworld.wolfram.com/ChaosGame.html"]Chaos Game[/URL] So, the basics that … | |
hi there! how do i read a specific line from a text file? maybe im asking the wrong question, so i will try to explain what im trying to do :) i have a file that looks a bit like this(just with 1000 lines): 1 dudea addressa 1000 10000000 maila … | |
I currently have a page made up of two tiles (tile1 and tile2 say). tile1 is the navigation menu and tile2 is the main tile. I want to be able to call the action associated with a form in tile2 from a button setup in tile1. Anyone able to give … | |
My assignment requires that I use exception handling to create a directory and file if necessary. I was able to create a C:data\inventory.dat file, provided that there's an existing Data folder (directory) in my C: drive; however, I have a feeling that the assignment wants me to create an actual … | |
hi! this is my new thread .... i would like to retrieve the excel data into the jsp page and stored it into the mysql. give me solution for that.... thank you, kaleeswaran:) | |
Hi everybody, I'm fairly new to GUI and even newer to Java and I was wondering if someone can help me find my problem and how to fix it. The problem is I'm doing the game mastermind and I'm checking the guess but everytime I click the button a second … | |
i got stuck on this assignment...i have no idea how to write it.well..actually i don't know what it is asked for.. could anyone help me with this piece of code? appreciate it... You will create a class that will perform several different functions on Strings that are sent to it. … | |
n. Write a method that will convert a number from binary to decimal. The binary number will be passed in as an array of Booleans (a true represents a 1 and a false represents a 0.) This is part of a methods practice assignment I was given. I'm currently taking … | |
Hi all, I have been working programming embedded C for just over a year now. But I am interested in learning Java. In essence, I am looking for a definitive guide to Java, including books and on line resources. From, past experience I know that the best way to learn … | |
Hi everyone! Can i read audio bytes from user's mic thru java applet and save it on server as .wav or any other format? Is it possible? Thanks. | |
I was wondering if any one could help in my project work. I am developing an anti phishing project where in my application should be able to sense when the user has opened a browser? I am looking forward for a valuable answer from java professionals. I am developing my … | |
I'm adding a few JLabels to a Box like this: [code] actor1=new JLabel(""); actor2=new JLabel(""); actor3=new JLabel(""); actor4=new JLabel(""); actor5=new JLabel(""); actor6=new JLabel(""); actor7=new JLabel(""); movie1=new JLabel(""); movie2=new JLabel(""); movie3=new JLabel(""); movie4=new JLabel(""); movie5=new JLabel(""); movie6=new JLabel(""); baconPath = Box.createVerticalBox(); baconPath.add(actor1); baconPath.add(movie1); baconPath.add(actor2); baconPath.add(movie2); baconPath.add(actor3); baconPath.add(movie3); baconPath.add(actor4); baconPath.add(movie4); baconPath.add(actor5); baconPath.add(movie5); … | |
So for a homework problem I basically need to write a program that reads data from a text file, then input it into an array which I can later use for other functions. The main problem is writing to the arrays. I can't figure out how to do it properly … | |
My delete button is not working and my due date is Sunday before midnight. Can anyone show me how to correct this error. My assignment statement is below as well as 5 classes. InventoryGUI is the main class to begin execution. I have a Data folder that contains my logo … | |
| Hey guys, I'm trying to read from a file and put each column into it's corresponding array. [code] % P_ID CPU_burst I/O_burst Priority 0 10 4 2 1 8 2 1 2 12 0 5 while ((Line=myInput.readLine()) != null) { StringTokenizer s = new StringTokenizer(Line); //System.out.println(Line); pid[counter]= Integer.parseInt(s.nextToken().toString()); cpu[counter]= Integer.parseInt(s.nextToken().toString()); … |
i am trying to make an autorun cd with a digital book in java. 1) How can i find out the cd or dvd drive letter in which has entered my cd? in the code section below i use this very ugly way to achieve this. 2)which is the best … | |
please help me create the first part of date class project. Date Class Project (part #1) Create a class named Date The class has 3 int variables for month, day, and year (05 points) The class has a Boolean value for whether the date is a leap year private int … | |
I need to create a Java program that implements both a stack and a queue (and not a palindrome problem) any suggestions? | |
Hello all, I am an online student in an intro to Java programming course and am a little stuck on my current program. I do not want the answer, but rather help figuring out what it is I am doing wrong. The program is supposed to prompt for an employee … |
The End.