31,001 Topics

Member Avatar for
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
283
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
649
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
451
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
617
Member Avatar for nadiam

Hello, so I have this program which should be creating a file called output and appending some content from another file,data.txt, accordingly. Creating file called output works but then the output file is empty. what am i doing wrong? Oh and Im suppose to use method print() but that gives …

Member Avatar for JamesCherrill
0
518
Member Avatar for annya

Hi, I have an app that worked very fine before Iam enabling the SSL to my domian name, I used an web url Ex: api.domian.com for getting detils to the app like login, result etc. some days before I have added an SSL (lets encrypt) the subdomian name suddenly the …

Member Avatar for annya
0
319
Member Avatar for Daron_1

public class StudentListings{ private String name; // key field private int ID; private double GPA; private int next; private int size; private StudentListing[] data; public StudentListings(){ this.name= name; this.id= ID; this.gpa=GPA; } public StudentListings(){ next=0; data= new StudentListings[Size]; size= Size; } // end of constructor public boolean insert(StudentListings newStudentListing) { if(next>=size) // the structure is full return false; // store a deep copy of the client's node data[next]= new StudentListing.deepCopy(); if(data[next]== null) return false; next= next + 1; // prepare for the next insert return true; } // end of insert method public StudentListings fetch(String targetKey){ StudentListings studentListings; StudentListings temp; …

Member Avatar for AssertNull
0
447
Member Avatar for Mona_1

How to make a program that input 5 names and each names consists of 3 quizzes using array.

Member Avatar for ddanbe
0
142
Member Avatar for divinity02

hi james Been a while since I have been here. am trying to do this program for the longest while. I have tried read and writing to a text file in java and i am getting a runtime error. can someone tell me where and why I am getting the …

Member Avatar for JamesCherrill
0
298
Member Avatar for Phantess

I'm using JavaFX 8. Right now I keep getting a NullPointerException for my tables. I have initalized the data and it appears when I click on the button to bring it up. However, when I try to search or delete something from the table it keeps giving me the exception. …

Member Avatar for JamesCherrill
0
1K
Member Avatar for meili100

Is this book, <JAVA in a netshell> 4th ed, a good book? [url]http://www.amazon.com/Java-Nutshell-Fourth-David-Flanagan/dp/0596002831/[/url] Has anybody read it? I am a C++ programmer and just want to quickly get started with java for simple JAVA programming. Because I don't have time to read <Thinking in JAVA> at this moment, I just …

Member Avatar for jwenting
0
473
Member Avatar for GURPREET_6

class space { public static void main(String args[]) { int i; for(i=0;i<5;i++) { System.out.print("*"); System.out.print("_"); } } for(i=0;i<5;i++) { System.out.println("*"); } }

Member Avatar for Joris Claassen
0
400
Member Avatar for musa B

I'm a master's student preparing for my master thesis I'm interrsting to be software engineer I need help for topics that will reflect my dream goal as software engineer although my supervisor gave my task to write proposal in natural language processing I dont know if is a good area …

Member Avatar for Reverend Jim
0
405
Member Avatar for ItsAmi

Help- super stumped on my loop... I need to create a loop so the amount that you input for example 5 students inputted, will corrospond to a grade. I have done the code, I just don't understand how I can get the input to corrospond to the grades. Here is …

Member Avatar for ItsAmi
0
898
Member Avatar for Meghan_1

So I have the following code contained within a class labeled book. public void setPublication(int bookVersion, String bookISBN, double bookPrice) { bookVersion = pub.setVersion(bookVersion); bookISBN = pub.setISBN(bookISBN); bookPrice = pub.setPrice(bookPrice); It refers to the following class, called publication. //Getter method to get the book ISBN public String getISBN(String bookISBN){ return …

Member Avatar for JamesCherrill
0
766
Member Avatar for Curious Gorge

Hey so I am trying to finish up a lab that I did not finish during a class this summer. The goal is to have the computer navigate an ASCII maze on its own. We use left/right hand rule to find our way through the maze. IE. you have your …

Member Avatar for JamesCherrill
0
655
Member Avatar for John_165

I have multiple JSpinner which have items 1-10 , and one JTable. When the JSpinner is clicked, the value will be added to JTable. I want to get the row number so I can use it at setValueAt. But I get error when the JSpinner clicked more than once times. …

Member Avatar for JamesCherrill
0
1K
Member Avatar for patk570

Hey everyone, I got bored one day and created this little jem. There are no issues with it, but it may help somone out later on down the road if they have a simple project that needs to be completed. Everything is on one pages and includes elements …

Member Avatar for patk570
2
3K
Member Avatar for RAHEEL_3

Hi everyone, How to select already drawn **single or multiple shapes** . I want to select shapes when i draw rectangle around it and when i click on blank area it deletects it. I need selection for copy, pase, move and delete operation. I don't know where to start to …

Member Avatar for JamesCherrill
0
512

The End.