32,204 Topics

Member Avatar for
Member Avatar for eoop.org
Member Avatar for jon.kiparsky
0
291
Member Avatar for deviliq

Hey there :) :) :) I'm doing a "simulation" project for the first-come, first-served (FCFS) CPU scheduling algorithm. To give u an idea of what this is: CPU Scheduling is all about having a Scheduler determine which process should be allocated to the CPU next. It has many various algorithms …

Member Avatar for Taywin
0
3K
Member Avatar for Progr4mmer

i have a game in eclipse that when i used to run would open up and work but i made a couple changes to it and now it just runs for a couple seconds(doesnt open up any windows) and then it says terminated down by the console in eclipse?

Member Avatar for Progr4mmer
0
129
Member Avatar for RickettRackett

Hey I'm using jgrasp and the objective is to get the robot out of a maze and I have done just that but after the robot makes it out of the maze I need to have it print out how many spaces it has moved in each direction such as …

Member Avatar for RickettRackett
0
184
Member Avatar for Glenner

[code]import java.awt.*; import javax.swing; public class ATMko extends JFrame { JPanel p1; JButton b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13,b14; JTextField t1; Container c= getContentPane(); public ATMko() { t1=new JTextField(" ",100); b1=new JButton("1"); b1.setBackground(Color.GRAY); b1.setForeground(Color.BLACK); b2=new JButton("2"); b2.setBackground(Color.GRAY); b2.setForeground(Color.BLACK); b3=new JButton("3"); b3.setBackground(Color.GRAY); b3.setForeground(Color.BLACK); b4=new JButton("4"); b4.setBackground(Color.GRAY); b4.setForeground(Color.BLACK); b5=new JButton("5"); b5.setBackground(Color.GRAY); b5.setForeground(Color.BLACK); b6=new JButton("6"); b6.setBackground(Color.GRAY); b6.setForeground(Color.BLACK); b7=new …

Member Avatar for peter_budo
0
696
Member Avatar for omlac

Hi all, which drivers should i download for the com.internetcds.jdbc.tds.Driver I cant seem to see a jar with this class. Does anyone know where i can get it from. Thanks

Member Avatar for peter_budo
0
92
Member Avatar for GooeyG

I'm having difficulty of inserting a value into a column. When I enter a "ID" number and a value in the "last name" text field, I get an error saying that the "mi" text field can't be an zero length string. So, i enter a value in the "mi" text …

Member Avatar for masijade
0
262
Member Avatar for bharath54321
Member Avatar for lohit kumar

Hi everyone, I have small Problem. I have to take input as a string say blue,green,red, etc split this into blue green red respectively separately and then add those into an ArrayList Clr. I have written System.out.println(" Enter Color "); String input = br.readLine(); ArrayList clr = new ArrayList(); String …

Member Avatar for lohit kumar
0
166
Member Avatar for sc0field1

Im having a brain block and I have no clue what to do next. Im not asking for someone to write code for me, im asking for someone to give me an idea or suggestion so I know what to write next. Im pretty confused. Below are my classes related …

0
81
Member Avatar for Poopster01

Below are the instructions for what I am currently working on. I am having 2 problems first is printing the values stored in my array right now i have it set up in a for loop but there seems to be something wrong with the syntax of my System.out statement …

Member Avatar for Poopster01
0
332
Member Avatar for mandy011

Hi all, I have implemented some code for simple columnar encryption. The algorithm is encrypting properly as I want. But during decryption it's giving me some errors. Please go through and suggest me if any idea [code] public static void encrypt(RandomAccessFile f,RandomAccessFile d,int columns) throws Exception { d.seek(10); // SEEK …

Member Avatar for mandy011
0
157
Member Avatar for tonskiwakaka
Member Avatar for Ezzaral
0
28
Member Avatar for lynnajoe

Hi, I am getting an error message as follows: java.lang.NoClassDefFoundError: inventorypart1/Beverages Caused by: java.lang.ClassNotFoundException: inventorypart1.Beverages I have been running programs with no problem and with this message I am confused. I cannot see what I am doing wrong but I think I have been looking at it too long. Any …

Member Avatar for mKorbel
0
162
Member Avatar for Phil++

Hello, I'm trying to create an application that when you click on a button, it just displays a string but it doesnt work. Here's the code: [code] import java.io.*; import java.awt.*; import java.applet.Applet; import java.awt.Graphics; import java.awt.event.*; public class main extends Applet { TextField input; Button convert; public void init …

Member Avatar for Ezzaral
0
272
Member Avatar for hairpull

I'm trying to write a code that validates that an integer is between 1 and 9. Then it prints out that integer as a word. User inputs 0 to exit program. Example: [I]Enter an integer between 1 and 9 5 Integer entered, five Enter an integer between 1 and 9 …

Member Avatar for jon.kiparsky
0
124
Member Avatar for PtblDuffy

Hello, I've been looking at this problem for a few hours, and I can't figure it out. We had to test this code and fix it if we find errors (it's a splay tree): [CODE] public class SplayBST { Node root; int count; int level = 0; public SplayBST() { …

Member Avatar for PtblDuffy
0
218
Member Avatar for Java NOOB

If I want to compare C, D, and E how do I do that with an equals method? [CODE] public class Fraction { /** * @param args */ public static void main(String[] args) { { Fraction c, d, e; c = new Fraction(5, 8); d = new Fraction(1, 2); e …

Member Avatar for jon.kiparsky
0
149
Member Avatar for sneha mehta

here is a program code i want to create an application that create frame and write the string on it and when i click the close tab of frame it will close the frame please help me...its very urgent.. [code]import java.awt.event.*; class SampleFrame { SampleFrame(String title) { super(title); MyWindowAdapter adapter …

Member Avatar for Taywin
0
131
Member Avatar for cybrix101

Hi all, I'm wondering if someone can help me. I am trying to write a basic program which involves a square moving across a JPanel in a random direction, and the user needs to click on the square to get a point. Now I have everything up and running but …

Member Avatar for Ezzaral
0
149
Member Avatar for WHI

I have this code which displays the letters of the alphabet. I am trying to get the JOptionPane to display the first six letters of the alphabet However when I try and just display the 6 letters, it displays all of the alphabet letters first, which is not what I …

Member Avatar for Ezzaral
0
108
Member Avatar for sj5536

hi sir i am doing the project in which i read tiff file and take two images from that file and create another tiff file i am able to take one image from the tiff file and create another tiff file my problem is that i am not able to …

Member Avatar for peter_budo
0
57
Member Avatar for jogendar

i want to implement client server communication through wirless network in java,by using Socket,ServerSocket classes can i connect two computers with wireless connection???

Member Avatar for jogendar
0
70
Member Avatar for Puertorro

Hey guys! I have a school project and I cant figure out the coding to make it work correctly. This is what I am supposed to do: Write a class with a main() method and two static methods. Your program should prompt the user for an integer that is no …

Member Avatar for mKorbel
0
350
Member Avatar for mukorera

Can anybody help me with java code to monitor system power,that is to check if a machine is running on battery or on ac power

Member Avatar for mukorera
0
93
Member Avatar for sneha mehta

Write a java based program to accept numbers from the user and also sum the list of numbers as and when entered. apply the data conversion mehods , if required. implement the best and the shortest way to complete the task.

Member Avatar for masijade
0
84
Member Avatar for bradyramone

Hi, I am new to mysql and have got a problem. I have managed to INSERT into the database and and check from it (a simple login system) but now after i login i want to copy all the data from that row and throw it into an arraylist. I …

Member Avatar for masijade
0
2K
Member Avatar for Phil++

Hello, Does anyone know how to set the text colour but for a specific character? E.g. If I enter "Phillip" I want it to display: P[COLOR="Green"]H[/COLOR]illip So that just 1 character is coloured? Heres the code I've written: [code] public void paint(Graphics g) { String elements; elements = nameField.getText(); char …

Member Avatar for mKorbel
0
119
Member Avatar for sirlink99

Hello I would like to implement multiple swing timers, each of which have a different function, but I cannot seem to separate the functions. I have one actionlistener and I cannot make another one. Please help.

Member Avatar for mKorbel
0
581
Member Avatar for softswing

Hai Friends, I doknow hoe to create new Registry key in java, For Example HKEY_LOCAL_MACHINE\Software\Company\Productname\version i searched through google, i got only by using third party jars,i want to do with out third party tools, please help me in this problem.

Member Avatar for JamesCherrill
0
69

The End.