32,199 Topics

Member Avatar for
Member Avatar for chrisb76

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 …

Member Avatar for BestJewSinceJC
0
267
Member Avatar for whoadiz

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 …

Member Avatar for sid78669
0
107
Member Avatar for eshirley

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?

Member Avatar for eshirley
0
223
Member Avatar for Jaulm

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 …

Member Avatar for Ezzaral
0
582
Member Avatar for nwalser

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 …

Member Avatar for cale.macdonald
0
188
Member Avatar for charpays

How can I do this? FILEOUTPUTSTREAM and FILEINPUTSTREAM provide code that will write bytes to file and read them back

Member Avatar for Ezzaral
0
47
Member Avatar for mldardy

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 …

0
76
Member Avatar for Jongor

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 = …

Member Avatar for Jongor
0
109
Member Avatar for charpays

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.

Member Avatar for BestJewSinceJC
0
208
Member Avatar for soUPERMan

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 …

Member Avatar for BestJewSinceJC
0
1K
Member Avatar for forgetlosing

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. …

0
36
Member Avatar for houlahan

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 …

Member Avatar for houlahan
0
3K
Member Avatar for dat_geezer

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 …

0
32
Member Avatar for lukermsdn111

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++) { …

Member Avatar for masijade
0
186
Member Avatar for softswing

Hai Friends. I want to use payment gateway in my j2me application, is there any way to process payment gate, if please , help me.

0
57
Member Avatar for The 1

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 …

Member Avatar for maye13
0
113
Member Avatar for achiman

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 …

Member Avatar for stephen84s
0
102
Member Avatar for sixesox

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...

Member Avatar for sixesox
0
136
Member Avatar for shiv0013

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 …

Member Avatar for jwenting
0
145
Member Avatar for Hitman908

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?

Member Avatar for jwenting
-1
56
Member Avatar for juju bean

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, …

Member Avatar for jwenting
0
382
Member Avatar for hell04

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 …

Member Avatar for tiny7415
0
6K
Member Avatar for PhiberOptik

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

0
71
Member Avatar for ChPravin

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 …

Member Avatar for ChPravin
0
575
Member Avatar for JavaNewbieEK

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(); …

0
49
Member Avatar for JainishP

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? …

Member Avatar for georgeh1
0
429
Member Avatar for pateldeep454

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 …

Member Avatar for pateldeep454
0
899
Member Avatar for tariq1081

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 …

Member Avatar for armsracer
0
104
Member Avatar for omar isaid

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

Member Avatar for omar isaid
0
117
Member Avatar for omar isaid

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 …

Member Avatar for omar isaid
0
874

The End.