32,199 Topics
| |
I am in a class and am trying to get this project done. I get the code to compile but it is giving me a out of bounds error. Here is the assignment. Write the program in Java (without a graphical user interface) and have it calculate the payment amount … | |
hey guys.. basically i'm writing a program that will let the user enter an int and the program will insert that that value in to a double-link-list(dll) along with calculating the sqr root value of it in that same node and it's inserted to the node by increasing int value … | |
I need to write a program that will output a list of all even numbers between 1-100. It needs to use a while loop then use a for loop. Any one got any help on how to do that? | |
I am attempting to execute a unix "df -k" command in java. I have the following example.. My question is how do I parse the results of the command in order to grab the available bytes versus just printing it out???? import java.io.*; public class unixcmd { public static void … | |
I am trying to create a program the checks the frequency of letters in a string but when i run the program it doesn't work right? Any suggestions for how i can fix this? import java.util.*; public class LetterFreq{ public static void main(String[] args){ String[] lines = new String[50]; Scanner … | |
How can I do this? FILEOUTPUTSTREAM and FILEINPUTSTREAM provide code that will write bytes to file and read them back | |
I have a hyperlink column in a datagrid that uses DataNavigateUrlFormatString to open a popup window via javascript. I am trying to get two variables from a sql to show in the query string for the popup window. I am able to pass the sessionstart date which is ={0} but … | |
Hello fellow seniors, i can display all the data from array after i input all the data, but do not know how to display it on displayDonor() Any help is highly appreciate. [CODE]import javax.swing.JOptionPane; public class DonorMenu{ public static void main(String args[]) { int choice = -1; do{ choice = … | |
How can I Define a JFrame subclass that has four vertically positioned buttons. The labels for the four buttons are Senior, Junior, Sophomore, and Freshman. When a button is clicked, display a message that identifies which button is clicked, using JOptionPane. | |
| I want to create an array of the object student, and be able to add a student, delete a student and change the student attributes. Please help. I need to add and do all these things using an interactive user input (Scanner). here's the student class i created. [CODE=java] public … |
I am currently doing project where i need to let user mark portions of any inputed image. The markings could be in different shapes like square, rect, circle, irregular etc. I should be able to remember the markings and later on reproduce them on the same image when asked to. … | |
everytime i try to append a new object to file it just over rights the whole file this is the code im using to add a new object to the file: [CODE] public void add1() { FileOutputStream fos = null; { ObjectOutputStream out = null; try { fos = new … | |
Hi, first time poster here, but i'm having some troubles with a project i'm working on. I'm not in need of a solution, just some pointers to get me going? I have a GUI which is a text editor for a programming language. Basically, i have all the functionalities of … | |
Hi, im a total Java beginner and was just hoping someone could help me work out why i'm getting an 'illegal start of expression' error on the first line: (public boolean isFull()) of this code: [code] public boolean isFull() { for (int a = 0; a < 10; a++) { … | |
Hai Friends. I want to use payment gateway in my j2me application, is there any way to process payment gate, if please , help me. | |
Help people hows it going? I need some help with a bubble sort algorithm, i basically have to use a bubble sort to look through a number of car registration numbers and put them into ascending order... Im just not quite sure how to get it done... I asked a … | |
I am try to form a multi thread in my program but its giving this error "\Java1.java:87: cannot find symbol symbol : class mythread2 location: class Multithreading Thread mythread1; mythread2 ^ \Java.java:88: mythread1 is already defined in Multithreading(java.lang.String) mythread1 = new Thread(this); ^ \Java.java:89: cannot find symbol symbol : variable … | |
i was doing my final year project.i need to do calculator.fuzzy calculator.in that calculator,the user will insert 4 numbers.that number should be transform into trapezoidal shape..but i don't know how to do it..from the number we insert into trapezoidal shape.somebody please help me... | |
i want to send mail through from my website. i used the below code [CODE]String host="smtp.gmail.com", user="username", pass="password"; //host = smtp_server; //"smtp.gmail.com"; user = jsp_email; //"YourEmailId@gmail.com" // email id to send the emails //pass = jsp_email_pw; //Your gmail password String SSL_FACTORY ="javax.net.ssl.SSLSocketFactory"; String to = email;// out going email id … | |
Im trying to get a java code for a website im making. I want to be able to submit files such as a small video to the website. What would be the java code for that? | |
I am not sure how to explain the issue that I am having. I believe that I am successful with the exception of this part of the assignment and I have been working on this for hours and need help. This is what I am having trouble with:In the subclass, … | |
Hi all, I have the following task; Extend an ArrayList of Integer by adding a method called 'sum', that returns the total sum of the elements of the list of integers. Such that each time the method is called sum up all the integers. So I started by making the … | |
Hey guys, I am starting a project using eclipse team CVS the problem I am facing is when my team grabs a copy of my project it doesnt give them a referenced library. I have googled and cant figure out how to fix! thanks PO | |
Hello All, Is there any way to completely test a Circular Queue Implementation?I have written an array based implementation and need to know if it works for all the cases.I was just wondering how to come up with exhaustive set of test cases to test the code instead of the … | |
I have a JFrame with 2 Password Fields and 3 buttons, the following code was provided to me as a part of the actual GUI builder, but it places the focus on the second field rather than the first one. [CODE] frame.addWindowListener(new WindowAdapter() { public void windowActivated(WindowEvent e) { newContentPane.resetFocus(); … | |
This is the class I created to make a MinHeap from data that is being inserted into it: [code]public class MinHeap { protected int [] a; protected int lastindx; public MinHeap() { lastindx = 0; // heap starts at a[1] a = new int[1]; } // is the heap empty? … | |
My task is: The Captain Crunch decoder ring works by taking each letter in a string and adding 13 to it. For example, ’a’ becomes ’n’ and ’b’ becomes ’o’. The letters “wrap around” at the end, so ’z’ becomes ’m’. Write a method that takes a String and that … | |
my assigment tell me to: Write a program to randomly generate a 3-digit number N (it is ok if the number has fewer than 3 digits). Create a number NN which is N placed next to it. Example, if the number N is 263 then NN is 263263. If N … | |
java.io.FilePermission this exception always thrown when I am trying to run my code using tahiti server that i am developing java mobile agent | |
the following code I want to press done buttone to close JFrame without exit the application ---------------------------------------------------------------------------------- [CODE] package examples.SecretaryAgent; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Display extends JFrame { private JCheckBox _first_Interval; private JCheckBox _second_Interval; private JButton _done_Button; public Display() { setLayout(new FlowLayout()); _first_Interval=new JCheckBox("First Interval"); _second_Interval=new … |
The End.