32,199 Topics

Member Avatar for
Member Avatar for David_83

Hi guys. So I'm building this code in java using NetBeans and literally this code has been working fine the entire time. I haven't changed anything about it and now it's giving me an error and I can't find out what's wrong. Can you please take a look for me? …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Zara_2
Member Avatar for rproffitt
0
93
Member Avatar for newbie14

I have the following socket connection codes. Where for every connection is one new thread. After receiving the data which is done via the producer then I put into a queue for next database processor which is the consumer. This works fine but the moment the queue gets build up …

Member Avatar for JamesCherrill
0
244
Member Avatar for iMaZx

Question: Estimate the time it will take to cut the grass of five clients. Given the length and width (in meters) of a rectangular yard and the length and width of a rectangular house situated in the yard, compute the time required (in minutes) to cut the grass at a …

Member Avatar for rproffitt
0
437
Member Avatar for Amiel_2

Java Hi when I tried to insert my output the void displayed null or 0 can you tell me what's wrong with my rpogram? tnx My main program `package zarashop; int choice; public static void main(String[] args) Scanner absorb = new Scanner(System.in); // phase 1 login cloth cl = new …

Member Avatar for JamesCherrill
0
364
Member Avatar for skimmpy

Any suggestions how to write a java program that creates java template based on the inputs provided. Also includes adding of dynamic getter setters. Please recommend the best way to achieve this

Member Avatar for JamesCherrill
0
131
Member Avatar for David W

This thread will be an attempt to develope a SIMPLE (and good enough) class for beginning Java students, to ease their coding for valid and crash proof, user (Console type) input, (and also handle Console output.) We assume here that beginning students need not worry much, about obtaining the fastest …

Member Avatar for JamesCherrill
0
1K
Member Avatar for JamesCherrill

This class is intended as a small and simple alternative to java.util.Scanner for people in the early stages of learning Java. Unlike Scanner it has built-in error handling and retry, it throws no checked exceptions, is as tolerant as possible of variations in the format of user input, and avoids …

Member Avatar for sam_30
3
6K
Member Avatar for michael_61

hopefully soone can help me with this lol , this grammar im looking at is kinda tricy and i feel like theres something im missing. im trying to find the first and follow of the below grammar S -> [] | [S] | SS For the first I got: First(S) …

Member Avatar for sepp2k
0
156
Member Avatar for Adrian_11

Create a program that will accept prelim, midterm, and final grade, the overall grade is 20% of the prelim grade, 30% of the midterm grade and 50% of the final grade. The program will display “EXCELENT, you can ENROLL again” if the overall grade is greater than or equal to …

Member Avatar for stultuske
-2
212
Member Avatar for Adnan_9

It is a software Development and it's need me a access ,c++ java, programming,database i need me and you

Member Avatar for JamesCherrill
0
116
Member Avatar for Nol_1

Hello DaniWeb Community, I'm a beginner Java programmer. The LoanTableTester contains the main method and the LoanTable is a class separate from the LoanTableTester class. May I please have help with a cannot find symbol - variable mortgage error? I wrote the methods for calculating the c, monthly payments, number …

Member Avatar for Nol_1
0
399
Member Avatar for Tony_18

Hi everyone, Im fairly new at Java programming and my professor asked us to write a program that can: - Show each grade by the letter. (Ex: A, B, C, D, F) - Minimum & Average grade of the class - The number of people who passed the exam (70+ …

Member Avatar for AssertNull
0
158
Member Avatar for PulsarScript

Hi have a question,why i do not get value output for FutureValue,do i use in the wrong place in Main method calculateFutureValue() ? package sd4.dobs.ui; import java.util.Scanner; public class Console { private static Scanner sc = new Scanner(System.in); public static void displayLine() { System.out.println(); } public static void displayLine(String s) …

Member Avatar for PulsarScript
0
587
Member Avatar for PulsarScript

Hi all i have couple jsp pages and java class as follows below.Can you help me with the session on the handleForm .jsp As this page supposed to show all info entered by the user in the form.I did manage to display session object in thanks,jsp But have now a …

0
181
Member Avatar for zetologos

im having a bit of trouble using the object i add to my arraylist. i used this as my reference: [url]http://www.java2s.com/Tutorial/CSharp/0220__Data-Structure/ArrayListandyourownobjectAddobjectstoArrayList.htm[/url] [CODE] import java.util.ArrayList; public class TestArrayList { public static void main(String[] args) { Object item1 = new ObjectMaker(); Object item2 = new ObjectMaker(); Object item3 = new ObjectMaker(); ArrayList<Object> …

Member Avatar for jwenting
0
25K
Member Avatar for IcyFire

I made a client server program to send an image from the server to the client. The image is being sent being but its not showing up in client window immediately. If i click send on the server then i minimize (or maximize) the client window then open again the …

Member Avatar for rproffitt
0
7K
Member Avatar for AssertNull

I've always been bad with regular expressions syntax. I am converting text into Bezier curves, polygons, etc. Part of that is identifying points in the form `(x,y)` where x and y are coordinates in a graph. I am extracting x and y as doubles and creating Point objects with those …

Member Avatar for AssertNull
0
365
Member Avatar for sarah_15

Hi, I'm staruggling with this program can I get some help please? Write a program called CalculateInvoice that allows a user to enter multiple invoice items for multiple customers and calculates a total invoice amount. For each customer, enter a customer number and customer name. Then, for each customer allow …

Member Avatar for JamesCherrill
0
1K
Member Avatar for imso

As what was stated on the header I want to implement either a "paint" or "eraser" function whichever feature more convenient for user to edit paint/censor unwanted parts of a photo displayed on a imageview before uploading it to a server in the edited format and a redo function if …

Member Avatar for imso
0
288
Member Avatar for newbee_jv

Hellow everyone, I have a populated LinkedHashMap, and I need to insert another key/value to it, but it appears that it replaces it. How can I append it? Here's the example: Map <String, String>invalid = new LinkedHashMap<String, String>(); invalid.put("111111111111111111111", "Invalid Message # 1"); Map <String, String>valid = new LinkedHashMap<String, String>(); …

Member Avatar for JamesCherrill
0
171
Member Avatar for AssertNull

I am developing a Graphics package in Java that allows the user to draw triangles, squares, circles, etc. and group/move/manipulate them in order to make animated stick-figure movies. I have an interface that allows users to add figures with GUI buttons, drop-downs, mouse-clicks and the like, and also a text …

Member Avatar for AssertNull
0
1K
Member Avatar for Louie_3

hello sir i would like your help on how to get the median of sorted values.for example my inputs are from 1 to 9 and id like to know the java program of this one,,thank you for your help sir.

Member Avatar for FC Jamison
0
148
Member Avatar for rhaylee

Hello! I am looking for some assistance with adding code to my program for handling non numeric data/user input, specifically letters. The program is coded in java. import java.util.*; public class AnArray { public static void main (String [] args) { // creates an array of interegers between 0 and …

Member Avatar for FC Jamison
0
382
Member Avatar for ajay_16
Member Avatar for rproffitt
-1
59
Member Avatar for sumod

Q.Write a program using 2D array. A company manufactures three products P1, P2 and P3. Company has hired five salesman. Each salesman sell all three products. Accept from user number of each product sold by each salesman. Find the product whose sale was largest.Also find the salesman whose sales were …

Member Avatar for sumod
0
2K
Member Avatar for Zent

Hello, Why is (1/0.3) = 3.3333333333333335 ? Where does the 5 come from? Thank you!

Member Avatar for rubberman
0
178
Member Avatar for Shoaib_7

hi deares Is a person can help me? my problem is: I want to connect Scanner to my pc with codeing by java , so have we a class in java to slove my problem ? tanks for all `

Member Avatar for rproffitt
0
78
Member Avatar for Sandeep_21
Member Avatar for AssertNull
0
256
Member Avatar for Ashraf_6

Hello guys, I would like to know how and where I can find a grid layout after compiling my java program using blue j. I've tried checking the tools section but I cannot find it. Thank you

Member Avatar for JamesCherrill
0
154

The End.