35,618 Topics

Member Avatar for
Member Avatar for babi.meloo

I need to design a class called Building that represents a drawing of a building(the parameters to the constructor should be the building's height and width). I need to color the buildings black with a few random windows colored yellow. Then I need to make an applet that draws a …

Member Avatar for babi.meloo
0
1K
Member Avatar for tingwong

Hello everyone, I have a little question regarding a project for my class. We are making a tower defense game with ants and zombies objects for our project. My question is with this piece of code provided to us. /** * Callback invoked when the player attempts to recruit an …

Member Avatar for tingwong
0
168
Member Avatar for forjustincase

Hello everybody, this is the first time I'm going to create a real-life JAR, so maybe a bit stupid question but I'm totally out of ideas here... Okay, I have a project named WiWClient which depends on other project named common and requires libraries from lib (there are like 20 …

Member Avatar for JamesCherrill
0
321
Member Avatar for akosivivas

Pls.. Someone help me on how to display in JLabel the product with two decimal places after I click a button.. pls. help I am new in making a swing program

Member Avatar for radhakrishna.p
0
189
Member Avatar for cezar84

Hi Guys, I'm new to Java and hoping someone can help me with this code. I started to work on this exercise to create a calculator app, and Im really stuck on two things: 1. NumberFormatExeption - NetBeans IDE keep show me this error: }catch(NumberFormatExeption e){ required: Throwable found: NumberFormatExeption …

Member Avatar for radhakrishna.p
0
146
Member Avatar for Atlanta15Braves

I need to design an application that makes a histogram that visually shows the distribution of a set of numbers. It has to read in numbers 1-100 and then produce a chart which labels how many of each number is input. So if my input is 1, 23, 17, 13, …

Member Avatar for Atlanta15Braves
0
4K
Member Avatar for freesoul.rahul

Hi everyone, I need some help with my homework. I checked online and found loads of results but didnt understand much. I need to submit hw by tomm nyt .. 27hrs from now. Please help me if you can plz .. Here is my code snippet public static void main(String[] …

Member Avatar for freesoul.rahul
0
314
Member Avatar for CoilFyzx

Hello good day. I have a quick question is anyone able to assist me in saving a password file. I encrypted my password and so I want to save the salt and the encrypted password(which are byte arrays). I tried using a properties file, but I soon found out that …

Member Avatar for CoilFyzx
0
253
Member Avatar for overwraith

I hope this is the right location to make this post. I downloaded the source code for a rich text editor from; http://code.google.com/p/android-richtexteditor/ and the code will not compile correctly. The errors I get are; "Unable to resolve target 'android-4'", "AndroidManifest.xml file missing!", and in the Html.java file there are …

0
67
Member Avatar for subramanya.vl

I have this static block of code which is following Singleton design pattern. class Employee{ private static Employee emp; static { if (emp==null){ emp=new Employee(); } } public static Employee getEmployee(){ return emp; } } My doubt is if this code can be accessed by Mutiple threads concurrently and break …

Member Avatar for subramanya.vl
0
1K
Member Avatar for Violet_82

Hi there, I am just beginning to learn java right now, and have a real begeinner question. I ahve read that when you declare a float variable and ssigna value to it the number has to be followed by an "f". What I coudln't find out is why: `var floatNumber …

Member Avatar for Violet_82
0
167
Member Avatar for Sumal

**Can some one please help me with this ?** import java.util.*; public class Expression{ /* * Strings used for storing expression. */ String s, x; /* * Term evaluator for number literals. */ double term(){ double ans = 0; StringBuffer temp = new StringBuffer(); while( s.length() > 0 && Character.isDigit( …

Member Avatar for NormR1
0
310
Member Avatar for rami sohaill

package hospitalclient; public class Person { static int idnumber= 1500; private String name; private String telephoneno; private char gender; private String nationality; //No Parameter constructor public Person() { name="unassigned"; telephoneno = ""; gender = 'M'; nationality = "Saudi"; } public int getid() { return idnumber; } // Accessor Methods public …

Member Avatar for JamesCherrill
0
351
Member Avatar for a7x813

/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package testelimination3; import java.util.Scanner; /** * * @author Nick */ public class TestElim { public static void main(String[] args){ Scanner input = new Scanner(System.in); System.out.println("Please enter a set of numbers"); int[] …

Member Avatar for subramanya.vl
0
1K
Member Avatar for lalitapatil

Abstract—A video copy detection system that is based on content fingerprinting and can be used for video indexing and copyright applications is proposed. The system relies on a fingerprint extraction algorithm followed by a fast approximate search algorithm. The fingerprint extraction algorithm extracts compact content- based signatures from special images …

Member Avatar for NormR1
0
187
Member Avatar for AlexThugNastyTyricebiggumsBello

Ok i made a chat thing for a forum i have but it didn't work but there was a detail box and this came up on it. "Java Plug-in 10.9.2.05 Using JRE version 1.7.0_09-b05 Java HotSpot(TM) Client VM User home directory = C:\Users\Patricia ---------------------------------------------------- c: clear console window f: finalize …

Member Avatar for NormR1
0
247
Member Avatar for Maria Jalal

1. **Remove the words where last character is a capital letter from a given sentence.**

Member Avatar for JamesCherrill
0
133
Member Avatar for SHINICHI

I'm new here and I have an assignment about java that i'm not understand on how to do it.Here is the question: Write a test program that read an integer n and call a method to display a pattern as follows: 1 2 1 3 2 1 4 3 2 …

Member Avatar for jalpesh_007
0
134
Member Avatar for Linsley

i have to create a calculator (i'm a 12 year old) for the science fair. on textwrangler when i try to compile it :Expected end of line, etc. but found identifier. here is my code: import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.*; public class JavaCalculator extends JFrame { private …

Member Avatar for radhakrishna.p
0
403
Member Avatar for DEAD TERMINATOR

I am writing some code to read some information from a text file. The file is essentially three columns of numbers. The first columns are ints, the second are doubles, and the third is ints. So I have created a tokenizer that goes through line by line and interprets the …

Member Avatar for radhakrishna.p
0
214
Member Avatar for Kronolynx

i got a problem to make a program where i should use arrays the problem is in the next part, even though all the for loops are the same in this array `results[4][5] = i; // problem here nothing gets stored` nothing gets stored, so when i run the program …

Member Avatar for Kronolynx
0
149
Member Avatar for _eclipse

Hi guys I need some help writing a program where I store information from a textfile into a parallel array. I need to be able to do a multiplication sum with the amount,and an if statement. Here is the textfile James 550 Quinton 410 Liam 120 Taylor 600 Jake 270 …

Member Avatar for _eclipse
0
166
Member Avatar for kwesiaryee

Please can anyone help me with a simple sample on how to populate JCombobox with data(mysql etc) using Java persistence (JPA). I am quite new to this component so I desperately need help with this.

Member Avatar for radhakrishna.p
0
336
Member Avatar for oldezwe

Ideally my program should work like this... Upon button click a random message (out of 3 messages) is appended to a text area(or pane, etc). One message should display blue, one green and one red. Currently I am using JTextPane. I have figured out how to append text easily but …

Member Avatar for JamesCherrill
0
326
Member Avatar for Synapomorphy

Hey I'm having trouble with a HW assignment, no need to give me the answer out right but any help would be appreciated! I'm just trying to search a linked list and find a node then delete it. Here is what I have so far: void deleteSong() { char deleteMe[sz]; …

Member Avatar for JamesCherrill
0
105
Member Avatar for hilalihakim

I need urgently your help. Anyone can help how to Write a Java GUI program that accepts three user inputs (use text fields) with three check boxes. The check boxes determine whether the area, circumference and/or the volume of a circle/sphere is/are calculated. If only one check box is selected, …

Member Avatar for JamesCherrill
0
630
Member Avatar for zwench

I want to know if this is correct for what they are asking. If I try to put 7.5% in the `int=` spot it errors. I am a newbie who doesn't quite understand it all. The commission rate in the firstmethod will be entered as a decimal value (for example, …

Member Avatar for kanu.votka
0
910
Member Avatar for mdonald_101

Write A Program With A Method Name PrintFactors That Accepts An Integer As Its Parameter And Uses Fencepost Loops To Print The Factors Of That Number Separated By The Word "and"

Member Avatar for jalpesh_007
0
88
Member Avatar for Kronolynx

Hi i gotta display 2 arrays on screen but they don't look good i was wondering how can i make it look like this: Speed 20 88 75 80 68 77 81 Focus 30 90 77 83 71 84 85 Jetta 40 94 80 85 76 91 90 Contour 50 …

Member Avatar for NormR1
0
215
Member Avatar for jprog1000

Hello Members, I have a program (from Deitel Java Solution Manual) which bounces a ball using a Java thread inside a JPanel(which is inside a JFrame). When I made a custom class for the ball, the program is not painting anything on the JPanel.I would appreciate any help. Following are …

Member Avatar for javaprog200
0
348

The End.