32,199 Topics

Member Avatar for
Member Avatar for nadiam

Hi. Im trying this java program that's suppose to register the "staff"'s "car" and there's this boolean method that I don't know how to solve. There are 3 classes: Tester, Staff and Car. the boolean part is suppose to check if the staff has 1 or 2 cars registered and …

Member Avatar for AssertNull
0
248
Member Avatar for nadiam

Hi. I have these exercises to do, to write the output of some coding given. I can compile it in eclipse but doesn't mean i understand. can someone please explain this code to me. thank you. int[] arrayA = new int[3]; //this part i know, create array size 3 int[] …

Member Avatar for JamesCherrill
0
328
Member Avatar for Hari_11

when i save my object in hibernate session.save(obj) getting this exception. (SqlExceptionHelper.java:127) SQL Error: 1747, SQLState: 42000 (SqlExceptionHelper.java:129) ORA-01747: invalid user.table.column, table.column, or column specification (AbstractBatchImpl.java:193) HHH000010: On release of batch it still contained JDBC statements (SessionImpl.java:2994) HHH000346: Error during managed flush [could not execute statement]

Member Avatar for AleMonteiro
0
528
Member Avatar for prakash2813

Hi there, I have a class definition like : class Student{ String name; int sub1; int sub2; int sub3; //... } I have list of all students. I want to get count, average, min, max etc using IntSummaryStatistics. Below is the code for sub1: IntSummaryStatistics sub1Summary = students.stream().collect(Collectors.summarizingInt(s -> s.sub1)); …

Member Avatar for prakash2813
0
271
Member Avatar for vivekH

how to interact in multiple modules, can anyone suggest any link or tutorial

Member Avatar for stultuske
0
140
Member Avatar for michael_51

Another common statistical measure is the standard deviation, which provides an indication of how the indivdual values in the distribution differ from the mean. to calculate the standard dev. whose element are x1, x2.....xn you need to perform the ff steps a. calculate the mean of the distribution b. go …

Member Avatar for stultuske
0
159
Member Avatar for Jendalin23

Hello, I have no experience experience with Java programming and I spend more time lost than anything. I have made an attempt at my week's assignment but I am stuck. Here is the run down of my assignment for that week **"Write a Java application using an Integrated Development Environment …

Member Avatar for AssertNull
-1
631
Member Avatar for Abdennour

hey ,i am new to the site as java bluej , i have drawn a flag using bluej using many objects like circle and rectangle ... i wanna combine the objects into one to move it together , what should i do ? the code source: /** * This class …

Member Avatar for JamesCherrill
0
226
Member Avatar for Violet_82

Hi guys, I wonder if you can help me at all. As some of you will know I do a bit of java development here and there but unfortunately I don't really have any programming background, like, I haven't studied computer science - I just learned (well, that's an overstatement) …

Member Avatar for Violet_82
0
273
Member Avatar for Zaal

Hey guys, I want to ask which captcha service is a better? im using right now DBC, but it is not so good, can someone recommend better service for recaptchas 4x4? Thanks

Member Avatar for happygeek
0
191
Member Avatar for Kubilay DoÄŸukan

I'm getting my ArrayList from a service and populate my ListView with it when user creates the widget. I have 3 button on my widget and I want to modify/filter the data in the ListView by button click. I saw examples of pending indent but I couldn't reach my ArrayList …

Member Avatar for Kubilay DoÄŸukan
0
338
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
333
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
181
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
501
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
277
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
385
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
179
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
429
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
821
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
364
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
236
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
458
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
213
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
330
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
161
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
590
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
300
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
66

The End.