32,199 Topics

Member Avatar for
Member Avatar for expresado

Hello, I would need some help/suggestions for my java project. it has to create object - "skrynka"="closet". Closet has Shelfs("poličky"). There should be for example Users = 3 cups(differenced by color). I need to move cup on shelf and than autocreate new cup on the "start" place. Problem is that …

Member Avatar for JamesCherrill
0
98
Member Avatar for sandrannola

Inline Code Example Here import java.util.*; public class DiceGame { public static void main(String[] args){ Random myRand = new Random(); Scanner myScan = new Scanner(System.in); double money = 10.00; int temp2 = myRand.nextInt(6)+ 1; int temp3 = myRand.nextInt(6)+ 1; int roll = temp2 + temp3; int choice = 0; boolean …

Member Avatar for DJSAN10
0
239
Member Avatar for nHulk

Please let me know godds books for web development using Jsf,Spring,Hibernate I am beginner to learn these technologies...and i am currently working on web development using these technologies...so let me know the easy and best books to learn these technologies. Books should include complete core concepts in simplified way....please help …

0
102
Member Avatar for ct_hunny

Hello I’m struggling in how to create simple pie chart (for dashboard). Since I’m new in jsp, and I have no basic how to connect the chart with database. Any idea or any solution.

0
76
Member Avatar for rampage12345

Hello all, I would really appreciate some help. I have an assignment for my class that is due where the objective is for the program to recognize the holiday when a specific date comes around. The easy ones are holidays that fall on a specific date every year, examples such …

Member Avatar for rampage12345
0
363
Member Avatar for sk8ergirl

Hi , I'm almost done with my practice paper I have done with the first part and now I'm working in the second part I came to this question and I stopped and didn't know how to call method from another class here is the question "In the Assignment9Form class, …

Member Avatar for Taywin
0
213
Member Avatar for minimee120

Here's what I have so far. I have one class Directory.java and another class DirectoryWithObjectDesign.java I need help editing my code that when executed, it will be prompted by 3 commands. Find, Delete, and Add. If asked to find, the user will input find then("stringhere"), then the program will search …

Member Avatar for Taywin
0
4K
Member Avatar for Kathy0410

My issue is creating the interface payable and making it compile properly. I have to modify an example out of the book such that is shows polymorphism using an different interface called Payable. This is what I have for my interface: interface Payable { //----------------------------------------------------------------- // Creates a staff of …

Member Avatar for Kathy0410
0
134
Member Avatar for HibaPro

hey everybody i need an answer of this question plz as soon as possible , write a method named season that takes two integers as parameters representing a month and day and that returns a string indicating the season for that month and day. Assume that months are specified as …

Member Avatar for HibaPro
-1
94
Member Avatar for fonzi

Hey guys, I am curious on how to start automated testing, and what kind of software or scripts would i need to test java, c , c ++, c#, or python code. Also does anyone now any good well explained videos or websites out there, i tried searching on google …

Member Avatar for Schol-R-LEA
0
312
Member Avatar for fonzi

Hey guys, I am curious on how to start automated testing, and what kind of software or scripts would i need to test java, c , c ++, c#, or python code. Also does anyone now any good well explained videos or websites out there, i tried searching on google …

Member Avatar for Taywin
0
149
Member Avatar for Swiftle

Hey, I made a small program for the k-clusters algorithm. In the current state though, I'm unable to erase the position of the centers from the previous itterations. If I use paintComponent(g) my jPanel will move down to the right and I have no idea why. (as shown here: http://tinypic.com/r/2eba0j8/6 …

Member Avatar for Swiftle
0
1K
Member Avatar for gassa94

hi i need help creating a program using arrays. this is what is assigned and i cant figure much of it out ! please help! The single field (instance variable) for this class is a array of type char named seats[] with 10 elements. The first five elements (0 to …

Member Avatar for Taywin
0
100
Member Avatar for rohittripathi

hi everyone I have created one web page for website, these having four main Div but i have to do Show Div and Hide some Div using javascript or jquery in css. **Four main Div are:-** 1) **header** 2) **banner** 3) **Content** 4) **footer** :- on the website two div …

Member Avatar for JorgeM
0
155
Member Avatar for panchahima
0
54
Member Avatar for Ravish.Ahmad.Khan

Hi! I am new to java and I'm trying to make a **Stop Clock** which shows time in minutes, seconds and mili-seconds. I've attached the zip file with this thread which includes the source code and other files required to run the program. The *problem* which I'm facing is that …

Member Avatar for Schol-R-LEA
0
224
Member Avatar for Atlanta15Braves

I need a program that will return an integers factorial, but only when the number entered is between 0 and 20. I have the code to disregard anything below 0 and above 20, but something with my math and/or syntax is off and I dont fully comprehend how to fix …

Member Avatar for JamesCherrill
0
262
Member Avatar for BablooDabloo

how can i shyow this output using a single for loop? `0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20` `0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 …

Member Avatar for stultuske
0
185
Member Avatar for manraj kaur
Member Avatar for FUTURECompEng

Currently this method has a run time of O(N^2) and I am trying to get it to O(N). Any suggestion as to where I should start? public void removeAll(e removeNum) { node nodeToFind = this.find(removeNum); while(nodeToFind != null) { this.remove(nodeToFind); nodeToFind = this.find(removeNum); } } Thanks

Member Avatar for JamesCherrill
0
296
Member Avatar for efth

Let's say I have an array/arraylist(doesn't matter) with the following content: 2, 2, 2, 4, 5, 5, 8, 8, 8. How wold I go about counting the different values, in other words; how would I find out that there are 3 twos, one 4, 2 fives and 3 eights. How …

Member Avatar for piyush09
0
316
Member Avatar for sk8ergirl

this is practice is require to create 3 class when I click load button I should get flight number ,day,time, destanation , pilot , co pilot I should get this http://s17.postimage.org/52smv6jl9/screenshot_A1.jpg every thing seem to be right I didn't get any red lines , but I can't find where is …

Member Avatar for Schol-R-LEA
0
82
Member Avatar for badboy515

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Drawing.Drawing2D; /* * @(#)fractal.java - Fractal Program Mandelbrot Set * www.eckhard-roessel.de * Copyright (c) Eckhard Roessel. All Rights Reserved. * 06/30/2000 - 03/29/2000 */ //import java.awt.*; //import java.applet.*; //import java.awt.event.*; /** * @version …

Member Avatar for ddanbe
0
263
Member Avatar for edensigauke

I have been working with Java a longtime, but my main problem is this. Everytime i try to set my classpath, set my path variables, all works well, until i think of adding a new package from elsewhere. Disaster breaksout, such that i have to recode the entire package for …

Member Avatar for edensigauke
0
233
Member Avatar for PinoyDev

Good day! I just need a little help on how to create this program the precise way. Example if the user will enter 123450, it should output the sum of all individual integers, in the example the result must be 15. If the user will enter a character or a …

Member Avatar for JamesCherrill
0
149
Member Avatar for kalelovil

The code below should be extracting the pixel data from the mapProvinceFile bitmap specificed and placing it into a byte array, modifying some of that color data depending on the contents of a custom ArrayList, vertically flipping the image, and then displaying the resulting modified image in a new pane. …

Member Avatar for JamesCherrill
0
404
Member Avatar for ahmed_fawzy

Could Any one Give me The Main Purpose of, Why we could use the Factory Design pattern ?. what is the problem that this Design pattern intent to solve ?. What is the Concept of The Factory Design pattern ? i would be very grateful if anyone could help me …

Member Avatar for JamesCherrill
0
145
Member Avatar for johsh.hanks

So, I have to find rhyming words. Basically I am getting a bunch of words and I need to compare which ones rhyme. So if I am given words like... friendl|y, luck|y, murk|y, rapidl|y luc|ky, mur|ky frien|dly, rapi|dly They can also rhyme with other words, so a word could appear …

Member Avatar for johsh.hanks
0
463
Member Avatar for nostalgia

Hello, It appears that I'm having a slight problem with a pesky ArrayIndexOutOfBoundsException when trying to assign a value to an array embedded within an object. I *think* it's because the array hasn't been instantiated before I try to add values to it's index. The purpose of the program is …

Member Avatar for richieking
0
222
Member Avatar for kt9871

ran into a little snag with my code. i am trying to push the data of all the nodes in a linkedlist into a stack. problem is, i have no idea how to properly convert a node into a variable. Node current = list.returnHeadNode(); //other code... stack.push(current.getData()); my error lies …

Member Avatar for kt9871
0
373

The End.