32,199 Topics

Member Avatar for
Member Avatar for dabears84

Hello, I need help with an assignment. I am lost and don't know where to get started. See attached. Thanks.

Member Avatar for P00dle
0
75
Member Avatar for Ryujin89

With assistance from others, I have an program that allows a user to input their employee name and number and then their hourly wage and their total number of regular hours and overtime hours. The program I need assistance with reads in that file, adds a new field at the …

Member Avatar for Ryujin89
0
290
Member Avatar for meowbits

The code not listed has an arraylist named unsorted size 1000, and another array named keys_Array, size 100. Every element from the keys_Array was picked from the unsorted, so they should always be found. Problem I'm having is that it doesn't print anything. It just reports a msg from the …

Member Avatar for meowbits
0
125
Member Avatar for wild_angel

I have 2 buttons in my form. The first button to fill the JTable from .xls file and the second button to save the content of the table to database (MySql). I haven't figure out yet the way to save data from JTable to MySql. :confused: So, can anybody help …

Member Avatar for wild_angel
0
107
Member Avatar for meowbits

I'm trying to randomly select 100 values from an array of 1000. How do I do this? Also, after selection, how can I add these 100 values into a new array. Do I need to do something like this with a loop? [CODE]for (x = 0; x < 100; x++){ …

Member Avatar for meowbits
0
2K
Member Avatar for Bluesilver

So basically my assignment is to write a few Java methods that contain arrays in the parameters, and then test each one using a main method within the same class. However, I can't figure out how to invoke the methods... I keep getting a compiler error that states "join(char[]) in …

Member Avatar for darkagn
0
189
Member Avatar for kingsboro2008

This is the first time I've posted a question so forgive me if I become vague. I will try my best to be as detailed as possible. I am creating a card game in Java that compares card hit points. The hit points are accessed from an input file. The …

Member Avatar for kingsboro2008
0
96
Member Avatar for ifezuec

how do i use netbeans to compile and run java. it seems complicated or rather direct me to a site

Member Avatar for Ezzaral
0
114
Member Avatar for candoc

If i am writing a java game and it has multiple people playing together, is there a way to find out how many people are at the same table/room playing?

-1
37
Member Avatar for jnthn205

Hello. For an assignment we have been given the shell of a tic tac toe game in java. We are to fix a few things that is wrong with it. here is the main class: [code] public class TicTacToeGameJonathanSilverberg { public static final int board_size = 3; // number of …

Member Avatar for jnthn205
-1
265
Member Avatar for meowbits

I'm trying to print the values but it just comes out as one string on binary numbers. What do I need to change? Thanks! [CODE]import java.util.*; public class lab5 { public static void main(String[] args) { Random random = new Random(); // int [] unsorted_array = new int [1000]; // …

Member Avatar for meowbits
0
75
Member Avatar for buffonomics

Java has matured in terms of UI presentation. search project Aerith for examples on some of the neat things that can be done when mixing JOGL, Swing and Java2d. However, it seems these only work on windows. Mac is still strangely alienated from the Java revolution, cuz Steve still strangely …

Member Avatar for buffonomics
0
166
Member Avatar for babylonlion

Hello, I need to re size the square whenever I move the slider; how can I accomplish that? Your time and effort are appreciated. [CODE] import java.awt.*; import java.awt.geom.*; import javax.swing.*; import javax.swing.event.*; public class SquareSliderTest{ public static void main(String[] args){ EventQueue.invokeLater(new Runnable(){ public void run(){ SliderFrame frame = new …

Member Avatar for babylonlion
0
120
Member Avatar for vcm

Hi guys, Im complete lost as to how to create a static Binary Tree object. My assignment states that I have to "Write a static method named ex1() that returns a BinaryTree object representing the expression (2 + 4) * 8" here is the code i have so far BinaryTree.java …

0
56
Member Avatar for sciwizeh

Hello All, it's been a while since I've had a question for you all. I'm trying to write a paint app, I've done so before, but this time I decided to add Layers, and I wanted a JList of the layers, I wrote a cell renderer, that not only renders …

Member Avatar for Ezzaral
0
146
Member Avatar for StarZ

hi, I've recently downloaded Java on my computer I think I downloaded the "windows app" one. When I try to launch drjava, this errors pops up and it says: An error occurred in Dr Java: java.lang.ArrayIndexOutOfBoundsExceptions:-1 You may wish to save all your work and restart Dr Java. I've downloaded …

Member Avatar for masijade
0
254
Member Avatar for 00musdan

Hello everyone i know very little of Java and need help with a project. If anyone could send some code or even help explain where i should start i would very much appreciate it. This is what the teacher gave us for the project outline on what the code should …

Member Avatar for 00musdan
0
160
Member Avatar for littleladyclair

hi ya! really hope u can help! ive taken on a computer course that is meant to teach me the basics of computing, and while i can understad databases and html, for some reason they have given us object orientated programming and i havent a clue!! ive spend alot of …

Member Avatar for javaAddict
0
536
Member Avatar for saadismail85

[CODE]import java.util.Scanner; public class Draw { public static void main(String[] args) { Scanner input = new Scanner (System.in); int width = 0; int height = 0; int select; System.out.print("Enter Width :"); width = input.nextInt(); System.out.print("Enter Height :"); height = input.nextInt(); System.out.println("============================================="); System.out.println("| SELECTION |"); System.out.println("|===========================================|"); System.out.println("| Option : |"); System.out.println("| …

0
90
Member Avatar for Agni

Hi, I'm writing my first RMI application, it's an auction system. At the end of the auction period for a particular item the server sends a 'callback' to the winning client telling him that he's won. It works fine till here, but after that i get this exception. It shows …

0
92
Member Avatar for begforcode

[COLOR="Green"]Hello I'm new to Java. I wanted to make a card game in which i want to overlap those cards. I just want to know how to overlap cards, like "solitaire" or "hearts" card games. Kindly help... I'll be grateful.[/COLOR]

Member Avatar for gangsta1903
0
85
Member Avatar for gunjannigam

I want to implement the following Task 1) Read till end of file 2) In each Line of the file there is a time mentioned. You need no call a method( code of which I have already written) 3)Wait for the time mentioned in that line of file and then …

Member Avatar for javaAddict
0
83
Member Avatar for Bakudan

Hey guys I am requesting u to help me with this programming assignement it is all about implementing a sequence counter given simple counter code For more information view the attachements Thanks[ICODE][/ICODE] [CODE] /* * Copyright (c) 1997,98,99,2000 E.J.Dijkstra / R.Smedinga. All Rights Reserved. * * Permission to use, copy, …

0
48
Member Avatar for saadismail85

Please look at the code below and follow with my questions: import java.util.Scanner; public class CaseGrade { public static void main(String[] args) { Scanner input = new Scanner (System.in); String name = null ; int grade = 0; String exellent = "Exellent :"; String veryGgood ="Very Good :"; String good="Good …

Member Avatar for masijade
-1
158
Member Avatar for shashikant.v

hi friends when i am running my programe on cmd in C:\Programe File\jdk1.6.0_14\bin I got the message that file name.java uses or overrides a deprecated API . Recompile with -Xlint: deprecation for details . what it meant how it will solved . please help me thanks in advance for reply …

Member Avatar for masijade
0
200
Member Avatar for hallwayantics

I'm a first time Java programmer and I'm having trouble compiling/running code. I installed jdk and I'm using windows XP MCE. I can get javac.exe to create a .class file but when I try running it with java.exe I get an error Please help. Thanks! [URL="http://img121.imageshack.us/img121/6788/javanowork.jpg"]http://img121.imageshack.us/img121/6788/javanowork.jpg[/URL]

Member Avatar for Makoto1981
0
180
Member Avatar for musthafa.aj

java socket... Hi! How do establish TCP socket over firewall using java RMI.... already i coded it but it has not been working if firewall(MS XP) IS ON...if it is OFF its fine...

0
60
Member Avatar for glendavis

I have a servlet that gets a parameter that tells it which operation to carry out. in the servlet, i have if statements that check if the parameter is a certain number (1,2,3). I use getParameter to get the parameter as a string but somehow it does not go into …

Member Avatar for masijade
0
100
Member Avatar for swapnilb1

Hi to all friends, I am working on c,c++,vc++ for 1 year.I completed DAC of CDAC in which i learn c++,java,j2ee,c#.net,asp.net,oracle and web tech(like html,dhtml,xml,ajax). Now i want to move from c++ to another technology...so what will be good([B]for getting job easily)[/B]..bcoz i know both(.net & java) but (i am …

Member Avatar for swapnilb1
0
162
Member Avatar for twerk

Hey, Im implementing a binary tree in a project of mine and I'm currently writing a remove method. lets say my tree is this 5 / 4 and lets say I want to remove 4. My nodes attriubtes are the key, left and right children. Initially, the left and right …

0
44

The End.