35,586 Topics
| |
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 … | |
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 … | |
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 … | |
[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("| … | |
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 … | |
[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] | |
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 … | |
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, … | |
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 … | |
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 … | |
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] | |
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... | |
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 … | |
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 … | |
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 … | |
I am having a little problem getting the data out of my array. It's probably something simple that I am missing but here is my code.[CODE]public class Search Sort { static Scanner cons = new Scanner(System.in); public static void main(String[] args) { String[] mov = new String[3]; for(int i = … | |
Hi and I have been working on a simple problem but can't seem to find any solution and have tried browsing the net. My question is how do I append to an array. Below is the code I tried but still doesn't work. [CODE]String[] names={""}; if (charcheck1==true) { String[] chartmp={"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"}; … | |
Hello, I'm refactoring a C++ program into a Java program (yes, it's homework). I have a problem where I add objects to an ArrayList of type Student, but when I try to access the objects, every valid index returns what should be only in the last element. For the sake … | |
Hi everyone, I decided that I wanted to try to write a graphics library. Yes, I know Java already has one, I just thought that it would be fun to try. I looked around, but couldn't find anything on the subject. I want it to be for Java, but I'm … | |
[B][COLOR="Red"]mmm.... i think its good [/COLOR][/B] [CODE] import java.util.Scanner; public class Studentgrade { public static void main(String[] args) { int num_of_student ; Scanner input = new Scanner(System.in); System.out.println("Enter the number of Student :"); num_of_student = input.nextInt(); String []name = new String [num_of_student] ; int array[] = new int [num_of_student]; String … | |
Hi! For my assignment, I was required to implement an ordered dictionary using a binary search tree. I have most of it done, but I'm stuck on a this one problem. My program needs to print the word from the dictionary that alphabetically follows the specified word (aka the successor). … | |
[CODE]<html> <head> <title>Moultrie Technical College - Worth County Campus</title> <style type="text/css" media="all"> /* Ryan Blalock (ShoppingCart.htm) 10/29/09 */ body { background: transparent url(images/bg.gif) repeat left top; } table { color: white; width: 800px; margin-left: auto; margin-right: auto; font-size: 10pt; font-family: arial,helvetica,sans-serif; background-color: black; } td#header { font-size: 16pt; text-align: center; … | |
hey people.i am new to java and i am currently constructing a hangman game. the game asks for the user to enter a word(3 or more characters long). then it prompts the user to enter a single character or the complete word in a message input dialog which contains the … | |
hi am stuck im trying to figure out how i can find the majority of numbers say in a list with the time complexity of O(n) say i have a given list of n elements finding all elements on the list that occur more then n/4 time. how would i … | |
For my assignment, I have to "Write a program that reads integers, one per line, and displays their sum. Also, display all the numbers read, each with an annotation giving its percentage contribution to the sum. Use a method that takes the entire array as one argument and returns the … | |
Hi, I am making a application , i have to make a small list of users from a big list of users. I am using ArrayList in Java but now getting result. To be more precise I have List1 with 10 users and i am making list2 of 3 users … | |
Hi there, I'm trying to code a simple program whereby an object (in this case a boat) can move freely around the screen via the use of the arrow keys. Now the left and right arrows should change the angle the boat faces, while the up arrow makes the boat … | |
I want to found more of area for (circle, square ..etc ) I'm using ( switch method). I read ( radius ,length ,width ,base and height ). but when I enter Area of square . it want enter ( radius ,length ,width ,base and height ) I mean all thing … | |
Hi, I am trying to develop an application that has got a Jbutton and allows to search a file and then loads selected line of that file in the JTable. I am able to do that when I hard code it inside the code but when I try to let … | |
wrtie a class with a static method: word count arrayToString most Frequent replaceSubstring (for example) it will work like count the word then tell me which word use frequent and if i change the word it will change the line with that. |
The End.