32,199 Topics

Member Avatar for
Member Avatar for ajst

Hi, I've got a job interview coming up and was wondering if people would be so kind to help me with some revision for the interview. It's it a programming role(surprisingly) so would be greatful if people would post the questions they have been asked or ask in job interviews. …

Member Avatar for Moschops
0
91
Member Avatar for J-Dubs

Hello, I am a student taking APCS and I am getting very frustrated with this program. Usually I can get everything figured out but I can't figure this out. It compiles but when I run it, it seems to give the wrong number for the number of bombs in adjacent …

Member Avatar for J-Dubs
0
2K
Member Avatar for jdog2u

Hello World. Thanks for any help in advance. I am in a basic java class. One of our first assignments is to develop this currency calculator. I have completed the code and it works fine. My only concern is that i could loose points if I have too much code …

0
54
Member Avatar for i.ibrahem

I need help please, I want to write a program that requests and reads two integers on one line representing a range, the program should output the sun of all even numbers in the range. if anyone can help please do, thank you.

Member Avatar for Akill10
0
245
Member Avatar for Progr4mmer

Im making an applet that moves a red ball using the WASD keys but it doesnt work for some reason help? [CODE]package Game; import java.applet.*; import java.awt.event.*; import java.awt.*; public class AppletOne extends Applet implements Runnable, KeyListener{ int x_pos = 10; int y_pos = 100; int x_speed = 3; int …

Member Avatar for Progr4mmer
0
196
Member Avatar for Lemonader

Hi. It says that the operator and return statement don't work. Can someone please explain what is wrong, and why it's wrong? I don't get it. [CODE] package hello; private class Person { private string firstName, lastName; private Date birthDate; public Person(String fN, String lN, int month, int day, int …

Member Avatar for Progr4mmer
0
86
Member Avatar for babynme

i am currently using Mircosoft Windows XP (32-bit) Version 5.1.2600 Service Pack 3 Intel(R) Pentium(R) 4 CPU 2.53GHz (2532 MHz), 1280 MB RAM (NVIDIA GeForce FX 5500) [U]My Problem[/U] when i run java program the CPU USAGE will run to 100% . i tried to reinstall but doesn't work. i …

Member Avatar for gerbil
0
168
Member Avatar for boifang

[CODE]class MOrders { int nooforders; // Data members of the class public int getorder() { nooforders = 500; } public void displayorders() { System.out.println("The number of orders to be delivered: "+ nooforders); } public static void main(String args[]) { MOrders obj = new MOrders (); obj.getorder(); obj.displayorders(); }[/CODE] getting a …

Member Avatar for masijade
0
69
Member Avatar for miku003

I'm trying to make an array-based queue that inserts and removes the elements... The default array is {0,0,0,9,10}. after the 0's are filled up it should say that its Full and will return to the loop. I'm having trouble making 3 particular methods which is dequeue, isEmpty, and isFull.. [CODE]class …

Member Avatar for miku003
0
174
Member Avatar for Abdel_eid

i googled on how to create a class dynamicly and i found that code [code] Date today = new Date(); String todayMillis = Long.toString(today.getTime()); String todayClass = "z_" + todayMillis; String todaySource = todayClass + ".java"; public static void main (String args[]){ MakeTodayClass mtc = new MakeTodayClass(); mtc.createIt(); if (mtc.compileIt()) …

Member Avatar for ~s.o.s~
0
295
Member Avatar for McCurry0x77

What is the best way to assign values to variables of various data types from reading a file (while importing as few things as possible and making use of the simplest code)? I need to write a program which can assign values from a .dat file, if that's relevant. If …

Member Avatar for masijade
0
122
Member Avatar for ajijacobm

hi, i have problems in accessing file through ftp from other computer.. i have a code, but it works fine in one computer... but i need to access a file stored in another computer connected through LAN. [CODE=JAVA] try { URL url = new URL("ftp://PROJECT:123456@192.168.1.117:21/images/1.jpg;type=i"); URLConnection con = url.openConnection(); BufferedInputStream …

0
69
Member Avatar for frankel81

Hi guys, I am having A LOT of trouble with this problem. If someone can help me out that would be so appreaciated. ATTACHED- below is my problem in my pdf file I email'd my teacher and this was his response. " you need to implement the three classes that …

Member Avatar for peter_budo
-1
105
Member Avatar for Amoryethel

Hi. I'm making an interface and a class that correlates with the client code below. Everytime I try to compile the client code, I get the following errors: [quote] Bird.java:15: = expected private Color col; ^ Bird.java:16: = expected private Point pos; [/quote] As well as a few others. For …

Member Avatar for Amoryethel
0
142
Member Avatar for Ryan61343

I am working on a application for figuring how much of each kind of coin One should get back when they give say 99 cents as the amount of change. I have a way to do it which involves simple integer division and subtraction but i was wondering if anyone …

Member Avatar for ztini
0
100
Member Avatar for JohnNoob

Hi all, I am writing a plug-in for imageJ on java. I have an image to edit, and the image is an 8-bit grayscale image. I need to make the white pixels (255) in the image to red pixels. Meaning, I have to convert the picture to a 24-bit RGB. …

0
89
Member Avatar for joeyfm

So I am working on a java project for a college asssignment (im a student ...) and dont know what I have done... but my sub menu (when create, delete find or update is clicked) wont display. what should happen is create is clicked and the sub menu displays with …

0
66
Member Avatar for montalbano80

I have to write a simple program that declares three arrayLists referenced by the objects named priceList, quantityList, and amountList. Each arrayList should be declared in main() and should be capable of holding a minimum of 10 double-precision numbers. The numbers that should be stored in price are 10.62, 14.89, …

Member Avatar for ztini
0
167
Member Avatar for curbster

Hi I'm in some serious need of help with a homework assignment. I have to write a program that takes a three word phrase from user input (through JOptionPane) and my code has to convert it to uppercase and then just take the first letter of the three words. here …

Member Avatar for ztini
0
3K
Member Avatar for Zabzacon

Right now I have three classes from following a tutorial I found online. It draws a red square and a blue square to the screen and lets the user control the red square. The issue I am having is getting it so that when they intersect from the bottom of …

Member Avatar for Ezzaral
0
145
Member Avatar for McCurry0x77

I'm required to construct a three-dimensional array (a "universe"), but unlike traditional array navigation where you go to the end of the column, row, etc., increment and start at the beginning, I am required to move in reverse (like actually navigating a cube). The precise instructions: - Move along a …

0
98
Member Avatar for Phaelax

I'm writing an inventory program for my uncle's warehouse, which has never been counted in 20 years. (yea it's taking me a week so far and still counting parts) I want the program to be serverless and just run on his laptop (which I'm still fixing also). I thought of …

Member Avatar for Ezzaral
0
102
Member Avatar for eikal

Hey guys, im doing a rock paper scissors program for h/w i got it done but im getting an error and i cant figure out whats wrong. [code] public static void main(String[] args) { int pcpick; int userpick; String userChoice = JOptionPane.showInputDialog("1 Rock, 2 Paper, 3 Scissors"); int choice = …

Member Avatar for eikal
0
182
Member Avatar for Sonny101

Hi all, I cannot seem to grasp the use of wrapper classes, or rather how to use them. I am in the middle of practicing for an exam tommorrow but I am a little stumped with the following task: [I]Create an overloaded setValue method that recieves a String parameter. This …

Member Avatar for jon.kiparsky
0
142
Member Avatar for eman 22

what's thew benefits of dynamic loading in java? and How can I load a classes befopre run the program?

Member Avatar for ~s.o.s~
0
100
Member Avatar for Lourdupinto

Hello friends kindly help me, Which is purely object oriented language Java or c++? If it is java why it is? how it is? If it is c++ why it is? how it is? Kindly help me...........

Member Avatar for Lourdupinto
-3
148
Member Avatar for triceratops

hi guys, i am asked to do a game where the player plays against computer where each one has to put into the pursue a piece of coin, it cas be 5cent, 10, 25 or a dollar, the one that puts the biggest piece can take the change for it …

Member Avatar for jon.kiparsky
0
110
Member Avatar for alvalany

I was trying to create a gui based application in netbeans. What I want is a lot of panels stacked one above the other. So that when one of the option in a panel is selected, tthe related panel should be displayed above the original panel I know this can …

0
93
Member Avatar for MIA6

Hi, I am pretty new to Java. I have some basic questions. [CODE] public class Array { private Object[] values; private int count; private boolean sorted; public Array (int max) { this.values = new Object[max]; this.count = 0; this.sorted = true; [/CODE] I am kinda confused at line 9. It …

Member Avatar for MIA6
0
140
Member Avatar for EmbeddedHelp

Hi all, I have created the following code that deletes a Vector entry. Currently it gives an error if you enter a string that is not present in the Vector. Can anyone recomend a way of looping back to the original text entry point, rather than terminating the program if …

Member Avatar for javaAddict
0
156

The End.