32,204 Topics

Member Avatar for
Member Avatar for overwraith

I have the following error as part of my nhibernate project; **Could not find a setter for property '0' in class 'AdHockey.Models.User'** The following is my model; public class User { /// <summary> /// Unique identifier for group used by program and database layer. /// </summary> public virtual int UserId …

Member Avatar for overwraith
0
2K
Member Avatar for random_1

Hello, is it possible to have a multidimensional array of different type? We have to create a simple "joke" application with GUI, and what I was thinking is that for each question a character(image) with a speech bubble asks a question like for example a joke about a banana would …

Member Avatar for JamesCherrill
0
270
Member Avatar for Dietrich_1

So I am having trouble with the last bit of the car class, I have to update the number of gallons in the car based on the number of miles driven... public class Car { private double mpg; private double mileage; private double tankCapacity; private double gasInTank; /** Constructs a …

Member Avatar for JamesCherrill
0
886
Member Avatar for Dietrich_1

Alright so I have a tester for this class and it keeps saying this message: "Now testing your drive method: *** A car with mileage of 700 miles driving 400 miles before running out of gas should not now have mileage of 1700.0 miles" However when I remove the mileage …

Member Avatar for stultuske
0
423
Member Avatar for Dietrich_1

So I am simplifying fractions for my fractions class and I am having trouble with the euclidian code for the gcd, it also doesn't print to the console window it just runs and nothing happens: public class GCD { public static void main(String[]args) { int n = 5 ; int …

Member Avatar for tinstaafl
0
184
Member Avatar for Dietrich_1

HI, so my code compiles but does not give the result I intended. Any help is greatly appreciated! How can we count the number of occurrences of a character or group of characters (a substring) inside of a given string of characters? In other words, how can we count the …

Member Avatar for JamesCherrill
0
450
Member Avatar for Dietrich_1

HI, so my code compiles but does not give the result I intended. Any help is greatly appreciated! public class SubstringCounter { public static int substringCounter(String master, String substring) { int count = 0 ; for(int pos = 0 ; pos < master.length() ; pos++) { int index = master.indexOf(substring, …

Member Avatar for JamesCherrill
1
356
Member Avatar for Deamanjoe

How can implement a perfect hashed data structure using the four basic operations? Could I do something like this or do I need to break up my code into two different classes and then test the methods from another class's main method? public class PerfectHashed{ int ticketNumber; // keyfield String …

Member Avatar for rproffitt
0
390
Member Avatar for rahaf_1

Write a java program that asks a person for his height (in meters) and weight (in kilograms) and outputs one of the messages: underweight, normal, or obese, using the BMI formula and BMI classification. Body Mass Index (BMI) is an index used to measure the body fat using the height …

Member Avatar for rahaf_1
0
2K
Member Avatar for Thanuj_1

We have a flex project which called from browser by using a swf file. After flash update the swf file is disabled. Here are the list of flash versions and browsers that we used in windows 7 OS. * Installed Firefox 56.0 - NPAPI 25.0.0.170 version in Firefox . - …

Member Avatar for rproffitt
0
421
Member Avatar for nonik

please help me, create an algorithm that can be used to spell out a positive number worth less than 1,000,000 and create a c ++ program for the algorithm

Member Avatar for stultuske
0
378
Member Avatar for Stefce

Hello everyone hope you are doing well, i was busy these days i was having problem with the police in my country, they catch me smoking weed and now i got criminal record... but never mind that i hope will be better in the future. So i got in mind …

Member Avatar for taersious
0
947
Member Avatar for Dipayan_1

Can you please Create a student database in java using string and arrays wherein we can store details of students Like their ROLL no, Name, Father's Name,DOB, Section and then also search a student using his DOB or Roll No. or Name?

Member Avatar for pty
0
2K
Member Avatar for kenya_1
Member Avatar for Zxander

I've come across a little problem. How do I make it so that after my game is finished, I can choose whetever to exit my program or just restarting it from the beginning. In main method I've started my while loop to check my tries left if my counter is …

Member Avatar for Zxander
0
349
Member Avatar for Sinisa_1

Good man James helped me learn die roll board game programming in Java, and I applied it on Ladders and Snakes. Made one in Java. Now I'm learning to do it in Android. Here's the question: Making simple Ladders and Snakes game. Can't use those in Google Play, they don't …

Member Avatar for Sinisa_1
0
3K
Member Avatar for divinity02

hi this is one of my assignment that I have to do. it is a triangle calculator. everything well with it but it just the calculation. when I run it, it gives a zero output. I think it may be my calculation. can someone take a look at it and …

Member Avatar for tinstaafl
0
284
Member Avatar for divinity02

hi james cherril I am doing a voting system application of which I have to hand up today. I am getting a runtime error when I entered a record and try to save it. as I entered one record and when the save button is pressed it give me a …

Member Avatar for divinity02
0
314
Member Avatar for Dietrich_1

So when I run my code I get a bug where it doesn't display the name for the person when displaying the scores: ![Screen_Shot_2017-10- ![Screen_Shot_2017-10-22_at_8_55_08_AM.png](/attachments/large/4/db8f249841da73d8654d7c6ea699aa03.png "align-center") Here is my code, I have been stumped for several hours: import java.util.Scanner ; public class StudentApp { public static void main(String []args) { …

Member Avatar for JamesCherrill
0
2K
Member Avatar for Dietrich_1

So I get an error that says "no suitable constructor found for Student(no arguments constructor)" /** * Write a description of class Student here. * * @author (your name) * @version (a version number or a date) */ public class Student { private String name ; private int test1 ; …

Member Avatar for tinstaafl
0
421
Member Avatar for Dietrich_1

import java.util.Scanner; public class LuckySevens { private int diceLength; private int rolls; private int sides; private int numRolls = 0; public static void main (String [] args) { Scanner reader = new Scanner(System.in); int diel, die2, dollars, count, maxDollars, countAtMax; System.out.print("How many dollars do you have? "); dollars = reader.nextInt(); …

Member Avatar for rproffitt
0
650
Member Avatar for Daron_1

I am working creating a fully encapsulated, homogeneous singly linked data structure. The Listing class and SinglyLinkedList class that are part of the whole application compile fine, but the problem that I am having is performing different operations such as insert, fetch, update, and delete inside of a do-while loop …

Member Avatar for rproffitt
0
301
Member Avatar for Sinisa_1

Good day to everyone. I need help. Have to make more of these and need someone to show me how. My code doesn't work the way it should. It would have to * wait for you to click jbutton and then: - disable jbutton - roll die, then start timer …

Member Avatar for Sinisa_1
0
1K
Member Avatar for Sajjad_4

import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; import java.util.ArrayList; import java.util.List; public class MatrixPath { static List<String[]> obstacles = new ArrayList<String[]>(); static String[] size = new String[2]; static String[] startingPoint = new String[2]; static String[] endPoint = new String[2]; static int sizeOfRow = 0,sizeOfCol = 0; char one = ' '; …

Member Avatar for JamesCherrill
0
454
Member Avatar for Shulc
Member Avatar for Keven_1

the code will show you what im trying to do, I hope you understand im new to programming but know the basics of java and im trying to add Object Oriented Programming to my apps so its not procedural thanks , if you need more info to understand just ask …

Member Avatar for JamesCherrill
0
3K
Member Avatar for Jason_24

Hi everyone, I am having some problems with this problem. I know I am almost there but I think I am not quite getting it. I get this error when I run it. Exception in thread "main" java.lang.NullPointerException at Newspapers.Subscribers.main(Subscribers.java:14) Can you guide me to the right direction. Thank you. …

Member Avatar for stultuske
0
4K
Member Avatar for Matth963

Hi, I'm doing a simple study planner in java. Obviously I need to do a timetable generator. The program works like this: 1. The user enters the start time of school and the length of each breaks (Done) 2. The user enters the lessons(Done) 3. When the user presses next …

Member Avatar for Jhonathan_1
0
5K
Member Avatar for tor-arne

Yes i do know this have been posted atleast two times before, but i can hardly get anyhelp out of it. So back to my post, trying to figure out what i am doing wrong, and why my class wont compile. So i am not really sure what to do, …

Member Avatar for JamesCherrill
0
2K
Member Avatar for divinity02

hi I am trying to build a triangle calculator that can tell you if you can form a valid triangle, I have reach the calculation part as yet just the part of the gui and that is the part with the error. something is wrong and i cant seem to …

Member Avatar for divinity02
0
624

The End.