32,199 Topics

Member Avatar for
Member Avatar for hwoarang69

i need help with simple tile map. i have 2d array as map. so i want to replce numbers in array with rect's. 0 = green rect 1 = red rect 2 = black rect and i want it so that the all tile are same size. when i run …

Member Avatar for hwoarang69
0
257
Member Avatar for Arjun_Sarankulu

I have created login application using spring in my local machine using Apache + Eclipse. I exported WAR of the same without setting the target server as i am deploying the same on sun web server. Application successfully deployed on sun web server. Successfully opens welcome page when click on …

Member Avatar for Arjun_Sarankulu
0
253
Member Avatar for Start4me

I want to create a method that is meant to protect against entering a wrong value for gender. The method **fineGender** below, will return true if the correct gender is entered and false otherwise. // postcondition: fineGender returns true if argument g equals M, m, F or f // and …

Member Avatar for andreas.bjorn
0
326
Member Avatar for anisha.silva

hi i want to add two dropdown boxes one for the make of the vehicle and one for the model of the vehicle. first the user need to select a make of the vehicle and then when he selects it only the models relevent to the make should display in …

Member Avatar for anisha.silva
0
191
Member Avatar for anisha.silva

hi i have a method which display a list of customer id's. the method is customerService.getAllCustomersID() how do i check whether this method returns a null list or list or customer id's appreciate a reply thanks

Member Avatar for anisha.silva
0
113
Member Avatar for meenal9

I tried to understand for loops but still not getting it....? please help me with its dry run i know its syntax etc but still not getting it i know it is used for multiple execution...until condition is satisfied please help me understanding in making patterns

Member Avatar for csk19
0
148
Member Avatar for hous3aholik

Hi! Lets say i have this expression I10I20I-3++ which should give me 27. I just cant seem to find a way of removing those I's or if it is any other letter from the string. Not forgetting i have to then evaluate the expression. I tried using regex but no …

Member Avatar for csk19
0
161
Member Avatar for paigewms

**My assignment:** Write a program that extends the example that we have done in class. Create a class called Trapezium, which is determined by two parallel sides “a” and “b” and the height “h” between them.The area of the trapezium can be calculated as Area = (a+b)h/2 The perimeter = …

Member Avatar for mvmalderen
0
810
Member Avatar for djcrab

I'm sure everyone has seen this at one time or another. I'm having trouble with the selection sort class. It should take this input: apple Apple Zone apple And return it as: 1:a:Apple 0:a:apple 3:a:apple 2:z:Zone I'm getting it as #0,1,3,2. here is the snippet I'm working with. Thanks for …

Member Avatar for bguild
0
238
Member Avatar for anisha.silva

HI i have a entity class vehicle and a entity class Customer. A customer has many vehicles, so in the vehicle entity class is as below @Entity @Table(name = "VEHICLE") @XmlRootElement @NamedQueries({ @NamedQuery(name = "Vehicle.findAll", query = "SELECT v FROM Vehicle v"), @NamedQuery(name = "Vehicle.findByMiles", query = "SELECT v FROM …

Member Avatar for anisha.silva
0
203
Member Avatar for DeepAnalyzer

Hi, i wanted to install maven in my windows 7 laptop.so i downloaded maven bin.zip file from maven website.then i extracted it to the program files as they have said.then i gave the relevant environment variables.but when i'm trying to check that the maven has successfully installed by running the …

Member Avatar for peter_budo
0
147
Member Avatar for engrjd91

whenever i try to install plugin in eclipse ... from help->install new software... when i give the download link in the workspace it gives the error of multiple problem and says "unable to read repository" .. what that mean ? any solution ?

Member Avatar for engrjd91
0
594
Member Avatar for onkarpathak833

I need idea for some basic java program based on some real life examole using encapsulation,inheritance and polymorphism. Can you just give me outline and I will code the problem statement..?

Member Avatar for onkarpathak833
0
83
Member Avatar for happygeek

According to new research from Kaspersky Lab, in the form of a report called [Evaluating the threat level of software vulnerabilities](http://media.kaspersky.com/documents/business/misc/Kaspersky_Lab_Report_Software_Vulnerabilities_final.pdf), 72% of Java users haven't switched to the latest, safest, version despite highly publicised vulnerabilities and resulting security exploits. ![dweb-java011](/attachments/small/0/dweb-java011.jpg "align-right") And it's not just Java, the report also …

Member Avatar for JamesCherrill
2
468
Member Avatar for smilesprower

Error I get when compiling using Xlint is: where E is a type-variable E extends Object declared in class JComboBox waring: [unchecked] unchecked call to addItem("blank") as a member of the raw type JComboBox c1.addActionListener ( new ActionListener() { public void actionPerformed(ActionEvent e) { if(c1.isSelected()) { fillSF2MC(); c3.setEnabled(false); playBtn.setEnabled(true); faceCombo.removeItem("Blank"); …

Member Avatar for JamesCherrill
0
213
Member Avatar for himvj1

Hi, I am new to php. I have copied one php application from one linux server to other linux server after copy application is working fine but the applet to view image in that application is showing two error messages. error is : java.lang.NullPointerException at com.primeleaf.viewer.manager.DocumentManager.setDocument(DocumentManager.java:123) at com.primeleaf.viewer.manager.CommunicationManager.init(CommunicationManager.java:76) at com.primeleaf.viewer.DocumentViewer.init(DocumentViewer.java:67) …

Member Avatar for cereal
0
309
Member Avatar for piliff82

I've been working on this project for the past couple of days. I can get the code to run, however, i'm suppose to be able to drop the java if I type -1 into the spot. I don't know how or where to place it. Here is the assignment and …

Member Avatar for JamesCherrill
0
754
Member Avatar for carrl00

create a console application that compute the area of triangle, and ask the user if he want to repeat the program. but i haved an 8 error saying cannot find symbol in line 19,23,26,27. import java.util.Scanner; public class Area3 { public static void main(String args[]) { Scanner input = new …

Member Avatar for stultuske
0
294
Member Avatar for nacedo

Hello world ! I have two arrays (max 100 characters) that I want to align, and add an "-" when there is disparity I found the Needleman–Wunsch algorithm, which is based on dynamic programming, and the Smith–Waterman algorithm is a general local alignment method also based on dynamic programming but …

Member Avatar for stultuske
0
121
Member Avatar for djcrab

I can't figure out how to make a portion of the text bold in the below line(and others). This text is output into a popup dialog. Prefer the first portion "trimmed/squeezed" to be bold. I even tried inserting html code lol. Tried setBold and everthing else I've found on the …

Member Avatar for IIM
0
615
Member Avatar for hous3aholik

Hi I'm working on the implementation of a boolean method to check if an expression has balanced parentheses using recursion. I cant figure out how to check if two elements of a given expression match i.e ( ). I was able to finish it without a problem using stacks, but …

Member Avatar for chuck.kollars
0
4K
Member Avatar for javaprog200

Hello, I am trying to display text(JLabel) above a 3 x3 tic tac toe grid. The JLabel is not displayed. Only the grid shows up. I would be grateful for any help. Thank you! import java.awt.*; import javax.swing.*; import java.applet.Applet; public class Game extends JApplet { LayoutManager layout; private JPanel …

Member Avatar for javaprog200
0
328
Member Avatar for godzab

Hello, I have tried making a merge sort method, but I am getting an `Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 .` How do I fix this error, I have tried but I can not find the error: public class MergeSort{ public static int[] merge_sort(int[] b){ if(b.length <= 1){ return b; …

Member Avatar for JamesCherrill
0
210
Member Avatar for sofien.fkih

I am using GUI in netbeans to create a combo box. I want to import all data of a column from database dynamically not manually to a combo box.

Member Avatar for softswing
0
101
Member Avatar for bangor_boy

I'm making a paddle and ball game, a bit like pong but instead of another paddle im using the top of the frame, plan to make it into a football sort of game eventually with a bit of work, I have been able to add the ball to the frame …

Member Avatar for JamesCherrill
0
273
Member Avatar for Envycx
Member Avatar for bhallarahul

hello everyone I learned jsp and servlet, now i wanted to develop a project which not only i shows as major project in my college but also want to learn real time development. If it possible for you give me an idea/ specification(contains Jsp, Servlet/Spring or more..) then i shall …

Member Avatar for LastMitch
0
132
Member Avatar for tricket_7

Going back to the grocery line queue. At the end of the program, it will output how many total customers I serviced, and it is supposed to output my maximum line length during the simulation. I think its obvious that I will use an "if" statement, but how do you …

Member Avatar for tricket_7
0
902
Member Avatar for nova4005

Hello everyone, I am working on a program that takes an input from a user and then tests whether it is a binary number or not. If it does not contain only 0's and 1's it prints out not a valid binary number. The part I am confused about is …

Member Avatar for bguild
0
546
Member Avatar for erms

Hello, I want to convert a plain text string to binary data so that the readable text is no longer visible, however certain programs can interpret the binary data properly. Something like when we compile a program into a class, the code is no longer readable, but JVM can still …

Member Avatar for erms
0
585

The End.