Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
3 Endorsements
Ranked #486
~17.6K People Reached
Favorite Tags
Member Avatar for laguardian

So, I've created a program that when a user inputs a type of vehicle, it will print how much will the user pay for their fare. Here's what I have so far: How do I call the methods Vehicle, Vehicle1, etc.. so that I am able to print the fare …

Member Avatar for stultuske
0
3K
Member Avatar for laguardian

Hello guys. I am currently developing a Case Management System with a versioning function. The versioning function will allow top management to see the different versions of a document and the different changes that were made by either the lawyer or top management. My problem is, how would I start …

Member Avatar for rubberman
0
168
Member Avatar for laguardian

Hello guys! I'm currently working on a matching app. In the app, the user can select what mode of difficulty they want(easy, medium, hard and suvival) as well as select one of the sets of images for the GridView(nba logos or world flags). My problem is that when the user …

Member Avatar for stultuske
0
329
Member Avatar for laguardian

Hey guys! I'm currently working on a simple matching game. The game has 3 difficulties: easy, medium, and hard. When the game starts up, it is already set to the easy difficulty with 12 tiles. Medium difficulty displays 20 tiles and hard difficulty displays 30 tiles. I've figured out how …

Member Avatar for laguardian
0
208
Member Avatar for laguardian

Hello guys! I'm trying to create a countdown timer for a memory app. The user is given about 5-10 seconds to look at the gridview of pictures then the countdown timer starts. I was wondering how I can achieve this. The code below shows the countdown timer which starts at …

Member Avatar for laguardian
0
1K
Member Avatar for laguardian

Hello guys. I'm creating a web application on Netbeans. Under Source Packages, I've created: - DAO Factories for Customer, Inquiries, and Employee; -DB Connection to establish connectivity with a database I've created; -Entities which include Customer, Inquiries, and Employee; -Servlets containing Login, Reservations, EmployeeRegistration. I'm just wondering if my understanding …

Member Avatar for JamesCherrill
0
186
Member Avatar for laguardian

Hello guys! I need advice. So I'm working on a Reservation feature of a system. I have created a DAO's for Customer, Employee, and CustomerInquiries. I will explain to you how this works first. The customer creates a "customer inquiry" on the company website to inquire about rental of buses. …

Member Avatar for JamesCherrill
0
230
Member Avatar for laguardian

Hello guys. I'm trying to create a registration form that takes in employee information. The error I'm getting is: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 I'm …

Member Avatar for jwenting
0
2K
Member Avatar for laguardian

Hello guys, I'm trying to add an object called product into an ArrayList of orders. I'm getting an error: no suitable method found for add(Product). Did I miss anything? This is my addOrder method: public void addOrder(ArrayList<Order> orders, Product product){ orders.add(product); } I've passed the ArrayList of orders and the …

Member Avatar for JamesCherrill
0
401
Member Avatar for laguardian

Hello guys! I'm trying to call a method in main called "buyProduct" which displays all products to the user. I' a getting a NullPointerException though. Here's what I have: public static void main(String[] args) { OnlineShopping shop = new OnlineShopping(); ArrayList<Cart> carts = new ArrayList<Cart>(); ArrayList<Order> orders = new ArrayList<Order>(); …

Member Avatar for laguardian
0
367
Member Avatar for laguardian

Hello guys! I'm working a project and it seems that there's something wrong with my switch-case. For example, in the user menu, the user can input the number 2 then it would allow them to deposit, but somehow, it keeps displaying the first switch-case. switch(resp){ case 1: users.get(0).displayProfile(); users.get(0).editProfile(); break; …

Member Avatar for stultuske
0
209
Member Avatar for laguardian

Hello guys! So I'm trying to create this online shopping system for a project. I was wondering if there is a way to gather user input piece by piece then consolidating them in an ArrayList? The first part I'm working on is the registration part. I'm planning to make the …

Member Avatar for jwenting
0
200
Member Avatar for laguardian

Hello there! I've created a method that searches for the customer with the highest deposit. Here's what I have so far: public Customer searchHighestDeposit(ArrayList<Customer> customers){ for(int i=0; i<customers.size();i++) if(customers.get(i).getBankAccount().getBalance()>customers.get(i+1).getBankAccount().getBalance()) return customers.get(i); else return customers.get(i+1); return null; The output is kinda weird: "The customer with the highest deposit is: bank.Customer@c390508" The …

Member Avatar for JamesCherrill
0
178
Member Avatar for laguardian

Hey guys! So I'm working on a program that accepts 7 user inputs then stores them in an ArrayList. Then it replaces elements that start with the letter "B" with an aterisk. I'm getting a IndexOutOfBoundsException. Here's the code I have: ` package arraylist1; import java.util.*; public class ArrayList1 { …

Member Avatar for JamesCherrill
0
131
Member Avatar for laguardian

Hey guys! So I'm making simple PetShop program based on an UML diagram I did. Anyway, I have 4 classes: PetShop(It's the main class), Pet, Customer, Transaction. I'm having an error on line 22 saying it cannot find symbol. I have the adopt() method in the Transaction class. Here's what …

Member Avatar for laguardian
0
200
Member Avatar for laguardian

Hey guys! So the error I'm getting is "cannot reference hoursWorked before supertype constructor has been called". I've just recently learned about using abstract, extends, and the keyword "super". What should I do in order to get rid of the error? Am I missing something? Here's my code so far: …

Member Avatar for JamesCherrill
0
224
Member Avatar for laguardian

We're creating a program based on the Opportunity card game. On each of the player's turn to draw, they have a 10% chance of drawing two cards instead of one at the price of 1000. How should we implement this? Thanks

Member Avatar for JamesCherrill
0
68
Member Avatar for laguardian

Hey guys! So I'm trying to make a simple program that prints out the attributes of "Person". I'm kinda still practicing with java so I'm not sure what the errors are about. Here's what I have: Driver: public class Driver { public static void main(String[] args) { Person a = …

Member Avatar for stultuske
0
127
Member Avatar for laguardian

Hey guys! I'm writing this really long code for practice. Got really rusty with Java so I gotta get brain working again. Anyway, the first part of the code asks the user for the number of employees; the for loop then keeps asking the user to input employee names depending …

Member Avatar for Doogledude123
0
279
Member Avatar for laguardian

Hey guys! So I'm writing a program that takes in a user input (1-3) and then executes the corresponding method. I keep getting the wrong output. For example, for prob1 when I input "john doe" it prints "Unauthorized!". And I'm like, foolish computer! I am your MASTER! How can I …

Member Avatar for JamesCherrill
0
226
Member Avatar for laguardian

Hey guys! So I'm writing a code that takes 10 numbers from the user which is stored in a array. The user then inputs the problem number (1 or 2) depending on what they want to do to the array. Unfortunately, I'm getting and error on line `array[i].prob1(); `.. Here's …

Member Avatar for laguardian
1
239
Member Avatar for laguardian

Hey guys! I have this program I'm working on, but I keep getting an error in my main class. Here's what I have: import java.util.Scanner; public class TicketingSystem { public static void main(String[] args) { Game game = new Game(); Scanner input = new Scanner (System.in); String teamName; game.addTeam(new Team(teamName)); …

Member Avatar for somjit{}
0
137
Member Avatar for laguardian

Hey guys! I'm working on this project of mine and I can't seem to get it to work. It keeps saying that I haven't initialized the variables: name, address, email, contactNumber, numberOfVisits. I currently have 3 classes in the package: PagamutanClinic, Clinic, and Patient. Here's my Main: import java.util.Scanner; public …

Member Avatar for JamesCherrill
0
146
Member Avatar for laguardian

Hey guys! I'm trying to create a program that first asks the user for an integer input *n*. The program will then ask the user for *n* Strings and store these in the array. This is what I have so far: public static void main (String args[]){ String[] strArray; int …

Member Avatar for stultuske
0
517
Member Avatar for laguardian

Hello guys! I need help. I have two forms: Input and Output. On the Input form, the user/s will have to input their name/s and times in which they are busy. When they click "finished", the Output form is supposed to display what they typed like their names and times. …

Member Avatar for JamesCherrill
0
312
Member Avatar for laguardian

Hey guys! So I'm trying to create a method that takes in a list of integers into an array and prints the elements inside the array line by line. How do I print the the elements? Here's what I have so far: public class Main { /** * @param args …

Member Avatar for NormR1
0
137
Member Avatar for laguardian

Hey guys, I'm trying to make this program that allows a person to set the size of an array to any value they choose. Then, the program will ask the user to input n values to be stored in the array at the corresponding index. Then the program modifies each …

Member Avatar for NormR1
0
1K
Member Avatar for laguardian

Hey guys! I'm working on a console calculator. My problem is that how would I perform the inputted operator? So, if the user inputs "+" and a "-" it will perform those. Here's what I have so far: [code] import java.util.Scanner; public class Calculator { public static void main (String …

Member Avatar for harinath_2007
0
136
Member Avatar for laguardian

Hey guys! I've created a simple program that given the current day and how many days from the current day, it will determine if it's a Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, where 1 Sun, 2 -Mon, 3-Tues, 4 -Wed, 5 -Thurs, 6 -Fri, 7-Sat My problem is that …

Member Avatar for Majestics
0
263
Member Avatar for laguardian

Hey guys! I need help... I have a text field and table that I made on NetBeans. I'm working on GUI. Anyway, in this text field, the user inputs his/her name. And the user's name is displayed on the "User 1" heading of the table: [code] jTable1.setModel(new javax.swing.table.DefaultTableModel( new Object …

Member Avatar for laguardian
0
2K