35,618 Topics

Member Avatar for
Member Avatar for KrullFX

I am new to programming and I am trying to fix the Java code errors below and no matter what I do I cannot get it to compile and run. Would anyone mind helping me with this and explain what I am needing to do. Thank you. import java.util.Scanner; public …

Member Avatar for JamesCherrill
0
340
Member Avatar for nunu_psu

Greetings everyone, I'm still new to android programming and currently leanrning how to connect to DB. I'm following a online tutorial but I'm still facing problems. The tutorial is about creat a registration form and sending it to the database through volley. I'm using .hostinger.ae as host and Android studio. …

0
188
Member Avatar for nitin1

Hi, I am creating a form in jsp. <form action="" method="post"> <input type="hidden" name="status_1" value="0" /> <input type="checkbox" id="status_1" name="status_1" value="1" /> <input type="hidden" name="status_2" value="0" /> <input type="checkbox" id="status_2" name="status_2" value="1" /> <input type="hidden" name="status_3" value="0" /> <input type="checkbox" id="status_3" name="status_3" value="1" /> <input type="submit" /> </form> I was …

Member Avatar for AndrisP
1
509
Member Avatar for prakash2813

Hello there, I am writing a data structure and restricted not to use any API or collection. I have written a Sorted Linkedlist, which stores strings in ascending order. Basically I am writing a dictionary, which can be easier to implement by Map, HashMap or Dictionary provided by Collection API, …

Member Avatar for rubberman
0
279
Member Avatar for Mar. Na.

Hi all; How can i ordering files in the package ,,,,java netbeans ordering files by name ,,, i want to move up or down to exganges positions of files in package.... i press click on it and move up or down but isn't work....!!! example: package filename: A.java B.java C.java …

Member Avatar for Mar. Na.
0
387
Member Avatar for spud91

Hi guys! im working with google places and i'm currently able to show 20 markers on the map. I have a FloatingActionButton on my map screen and once the user presses/clicks on it it should display the markers based on the next_page_token. Currently ive hard coded one in for testing …

0
183
Member Avatar for MirorB

There are 3 JTextfields that are supposed to display info in each one after you click List Info and brings you to a new GUI and you automatically see the info in the JTextFields, but it's not displaying anything. Also I'm using Eclipse and SQLite Manager if that helps. Iogin, …

Member Avatar for MirorB
0
432
Member Avatar for nitin1

Hi, I am stuck with a problem. I have two Date objects (util class objects). I want the difference between these two dates as the number of days between them? I am using Java 8. Can you please help me with this? Searched the web a lot. Some are saying …

Member Avatar for JamesCherrill
0
833
Member Avatar for nitin1

Hi, I was using booleans earlier in my class. --> isProductRestricted --> internal --> isProductGlobal I am using lombok too. So putting @Data at the top of class too. But, now I changed these boolean to Boolean variable. I got errors where ever `Object.isInternal()` was used. I am not getting …

Member Avatar for nitin1
0
366
Member Avatar for modernfrt

Good day everyone, I'm trying to save an inputted data using JTextfield in JAVA GUI into MySQL database. But when i pressed the save button nothing happens. I want to show you all my work right now. Please try to help me, Thank you in advance! if(e.getSource().equals(save)) { //THE SAVE …

Member Avatar for stultuske
0
6K
Member Avatar for Saboor880

Hello! I have written a simple program which connects netbeans with SQL Server database. The program is giving an exception. I am displaying the source code of my program and exception below. Please guide me to solve this problem. public class dbconnection { Connection con = null; public static void …

Member Avatar for Saboor880
0
238
Member Avatar for nadiam

Hi. so we have this tutorial, a program that we have to complete, that we have to do before attending class and I've sort of completed it except for this small error. > Exception in thread "main" java.lang.Error: Unresolved compilation problems: > id cannot be resolved or is not a …

Member Avatar for nadiam
0
467
Member Avatar for nitin1

Hey, I have one class Company and one Item class which is an object in Company class as shown: public abstract class Company { @Inject private ItemClass item; void companyMethod() { this.item.itemMethod(); } } public class ItemClass { public void itemMethod() { // logic } } So, many class inherits …

Member Avatar for JamesCherrill
0
219
Member Avatar for vishalsingh1080

...well I'm just about to step into my sophomore year in college as a computer science engineer, undergraduate . I was eager to know about all the important and world renowned competitions that are held in the field of computer science. I just know about ACM ICPC . I'm interested …

Member Avatar for vishalsingh1080
0
332
Member Avatar for rhaylee

I need some help with an assignment. It's already done, however my teacher made specific comments thatneeds to be addressed before I can resubmit it. - I have the wrong implementation in insertFront() and removeRear() methods. - I am missing a wrap-around in my peek() methods. - I did not …

Member Avatar for stultuske
0
162
Member Avatar for yuvi2288

hi experts, [code=html]<a href="http://www.example.com"> goods </a>[/code] this is the hyperlink i have to used for example. i want to get the term 'goods' in the above hyperlink through jsp if i will click 'goods'. can i get the term in jsp like the below snippet?? [code]<% String goods=request.getParameter("goods"); %>[/code] or …

Member Avatar for Vishija
0
14K
Member Avatar for Elizabeth_9

somebody help me with this please package py.com.sistemas_ventas.view; import java.beans.Beans; import java.util.ArrayList; import java.util.List; import javax.persistence.RollbackException; /** * * @author Mirtha */ public class DepartamentoView extends javax.swing.JFrame { /** Creates new form DepartamentoView */ public DepartamentoView() { initComponents(); if (!Beans.isDesignTime()) { entityManager.getTransaction().begin(); } } /** This method is called from …

Member Avatar for stultuske
0
592
Member Avatar for spoch

Hey I just found this site because I have been working on a program to make answer and create questions to the game 24. (24 is a game where players are given 4 numbers and by either adding, subtracting, multiplying and Dividing the given numbers the number at the end …

Member Avatar for JamesCherrill
0
2K
Member Avatar for du_ebrithil

how would I add text that the viewer could see and not just to the console as well as it not getting rid of the other text on the page? <!DOCTYPE html> <html> <head> <title>help me</title> </head> <body> <p>this is a line of text</p> <p>this is another line of text</p> …

Member Avatar for mblan180131
0
301
Member Avatar for yasmen_1

Im using Java Threads to implement the Weka CrossValidation (10fold CV), but im having difficulty understanding where the averaging part takes place in the method EvaluateModel(), i need to make sure each thread have it's own copy of the error rate for each fold and then perform the averaging when …

Member Avatar for stultuske
0
67
Member Avatar for khaled_jawaher

Hi, I have 2 projects opened in eclipse,I have added one of them as a maven dependency to the other.When I enable workspace resolution I am getting an error:Missing artifact myprojectname:jar:1.0.0 and when i disable workspace resolution it is showing some member properties of the class related to the project …

Member Avatar for rproffitt
0
241
Member Avatar for DGULLIVER

Hi, Currently my PC is setup for .Net development using Visual Studio 2012. I'm starting to look at JAVA programming so I was wondering can the JDK and Netbeans/IntelliJ/Android Studio coexisit with my .Net Development environment? I do not want to install the JDK and the either if the IDE's …

Member Avatar for stultuske
0
357
Member Avatar for pauline marie
Member Avatar for SagarSe7en

Hello All, I am currently working on developing an authentication system. Below are the details: This code inserts the details (username and password) to the database. the password is hashed and stored in the db package org.controller; import java.io.IOException; import java.io.PrintWriter; import static java.lang.System.out; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; …

Member Avatar for SagarSe7en
0
382
Member Avatar for letters1417

Hello! I have to print patterns using '*' and I am at a loss how to get these patterns printed! I figured out the first one, * ** *** **** ***** ****** ******* ******** ********* ********** and now i have to do it upside down: ********** ********* ******** ******* ****** …

Member Avatar for JamesCherrill
0
2K
Member Avatar for Stephen_13

I know this is really messy code but I am writing a Paint app in Java for a class and I'm getting an ERROR when I drag the mouse. MousePressed works properly (prints). MouseDragged, however, throws a NullPointerException. Please let me know what the problem is here. I'll put a …

Member Avatar for JamesCherrill
0
425
Member Avatar for Shreyas_2

i want to count the checkboxes i putted in my project when they get selected and they cant available again when they get stored in mysql plz rply me on shreyasmnt@gmail.com

Member Avatar for 2teez
0
121
Member Avatar for Centorpe

I have a series of activities the last of which holds results. I have 'Send to Printer' button which needs to send these results to a wireless printer. Can anyone give me an example of doing this? I''ve trawled the web but there seems to be very little on this …

Member Avatar for rproffitt
0
348
Member Avatar for saswati_mishra

Hi, I am writing a code to dynamically create a table and then add delete and modify records. The table is created from an existing database table. How ever the add and the deleting of records is not wrking. I think there is some error in the query statements. Please …

Member Avatar for gentlemedia
0
1K
Member Avatar for divinity02

hi i am practicing this program here and i am outputting zero. trying my best where is the error here is the code double fed_tax = 0, state_tax = 0, hrswrk, payrate=0, gross_salary = 0; double hrlyrate=0; System.out.println("hi please enter your first name"); String firstname = userinput.next(); System.out.println("hi please enter …

Member Avatar for JamesCherrill
0
238

The End.