32,204 Topics

Member Avatar for
Member Avatar for ManiVasagam_1

I am trying to edit and delete a single record from multiple records.Here below is my sample record displaying on jsp page, ![enter image description here][1] [1]: http://i.stack.imgur.com/suJMS.png I can edit the record for each row easily using below code, <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page import="java.util.List" %> …

0
88
Member Avatar for divinity02

Write a program that will read two numbers and an integer code from the keyboard. The value of the integer code should be 1, 2, 3 or 4. If the value of the code is 1, compute the sum of the two numbers. If the code is 2, compute the …

Member Avatar for Slavi
0
168
Member Avatar for kayleigh0411

I need to make this program GradeCalculator.java, and I can't figure out what is wrong with it. I'm really struggling, could someone please help! Thanks!! In the GradeCalculator.java program the user clicks the Enter button. The first input is a JOptionPane that asks the user, “Number of score to be …

Member Avatar for stultuske
0
185
Member Avatar for EarhawkPH

It's the end of our first semester. We've done the basics of programming on Turbo C/C++. i somehow can't find some comprehensive Java guides in the interweb.. I'm having an advanced study because we're gonna focus on Java on our next semester :D

Member Avatar for EarhawkPH
-1
92
Member Avatar for chubbyy.putto

Here is problem: I ask user for how many dogs do you have user enter 5 i go via for loop and add the name into arraylist and now i want to display like 1. Java 2. is 3. fun and so more.... not just 3 after I want to …

Member Avatar for Santanu.Das
0
91
Member Avatar for chynaman

SET i=0;sum=0 WHILE i<N SET sum+sum+a[i] i=i+1 END WHILE DISPLAY SUM arrays given 3,1,0,6 dry run and explain what the code does

Member Avatar for JamesCherrill
0
53
Member Avatar for yingfo

Hi I am having trouble trying to get my add and remove function to work. We had to create an ADT List using array's. It keeps giving my program errors any help would be great, I think my problem might be my second part of the add function where it …

Member Avatar for stultuske
0
919
Member Avatar for chubbyy.putto

I know how made an arraylist but i dont know how make an arraylist inside an arraylist? let says: Alex age is 31 alex and age is gonna be in one arraylist alex 31 burren java burren and java is alex dogs; how can i store burren and java under …

Member Avatar for Schol-R-LEA
0
321
Member Avatar for teekay309

A certain company wants to improve the rate at which their login system is accessed and you have been tasked to carry out this project. In this project, you will consider the problem of organizing a collection of computer user-ids and passwords. Each time a user logs in to the …

Member Avatar for JamesCherrill
-1
213
Member Avatar for mxwarning

Hello, I am having trouble with how my program displays the items with a $ sign. I do not want a dollar sign and I ma not sure how it got there as I did not put one in. Is there a way to get rid of the $ sign …

Member Avatar for mxwarning
0
119
Member Avatar for edrewc

Hello java friends, I'm new to the concept of ArrayList and I want to solve this problem in my code. my main problem: I don't know how to sort itemA and itemB to appear only once then It will just add the total prices together. this is the behavior of …

Member Avatar for zolymo
0
1K
Member Avatar for cd88

Hi, I am trying to use an exception catch properly but I am getting lost and frustrated. I've changed my code so many times and cannot figure out why when it catches the exception it will not let me continue to enter data into the array. It just displays it …

Member Avatar for JamesCherrill
0
233
Member Avatar for Victoria_1

For a homework assignment in my intro to java class I was given the following problem: Write for, do-while, and while statements to compute the following sum and product 1. 1 + 7 + 25 + 79 + .... + (3^20 - 2) 2. 1 x 3 x 9 x …

Member Avatar for stultuske
0
252
Member Avatar for humorousone

I've played a LOT of minecraft over the past few years, and this is quite a big deal for me. Personally, I can't help but feel a little bit concerned. > In a statement, Microsoft said it would maintain Minecraft across all its existing platforms, with a "commitment to nurture …

Member Avatar for DeanMSands3
0
367
Member Avatar for KetraCoder

Hi, I've recently just discovered that there is something called ByteCode in Java, and I was wondering what it is used for. I am trying to make a simple Typing Test Word Typer Bot, basically it reads the words on the browser for a typing test called 10FastFingers, then it …

Member Avatar for JamesCherrill
0
250
Member Avatar for SadiqGwarzo
Member Avatar for VinVins
Member Avatar for JamesCherrill
0
39
Member Avatar for chubbyy.putto

I trying to understand the ArrayList let say the user input in 1st Person Name : Alex Sex : M Dog Name: Java 2 Person Name: Joe Sex: M Dog Name: Is 3 Person Name: Anna Sex : F Dog Name: Fun in Arraylist how can you separate out from …

Member Avatar for zolymo
0
207
Member Avatar for zolymo

Hello. Im making an webapp using Eclipse Keppler. REQUIREMENTS: - Eclipse for Java EE (or JBoss Developer Studio 7 o 8) - JBossTools installed on eclipse - JBoss Aplication Server 7.1.1 (not eap) - MySQL connector J 5.33 Structure of project: i use this package structure - persistence and ejbdao …

0
87
Member Avatar for andruluchko

I have to make a model of this arithmetical expression using a binary tree. Expression is a+b*c-b http://piccy.info/view3/7176082/d09578d27ea7057c572de3f108a9301f/ Here's the model of my tree in Java enum NodeType { NUMBER, OPERATOR } // Possible kinds of node. class ExpNode { // A node in an expression tree. NodeType kind; // …

0
85
Member Avatar for infiniteloop56

Hi Community, I have a problem that I am trying to solve. Essentially, the run down is that Integers have a limit to the size of the number in which you can store in such a data type. To get around that I have to take a number and put …

Member Avatar for jwenting
0
120
Member Avatar for LianaN

Hi! I'd like to check if a string contains spaces: [CODE]System.out.println(text2.getText().matches("\\s+"));[/CODE] This code returns 'false' for both "My string" and "MyString". But I need 'true' for "MySpace". How could I do this? Thanks!

Member Avatar for stultuske
0
19K
Member Avatar for cemonica

Hello everyone. I am having a lot of trouble in a class, and I am wondering if I can get some input/advice with my part one inventory program. I have already submitted this assignment, but I am going to have to modify it on Wednesday. My instructor has not graded …

Member Avatar for Schol-R-LEA
0
198
Member Avatar for school12345

Using 3 different for loops, write a java program to give the following output. The program requires no user input. Save the program as ThreeLoops.java Countdown... 10 9 8 7 6 5 4 3 2 1 Blast Off! Even Counting 2 4 6 8 10 12 14 16 18 20 …

Member Avatar for Loiba
-4
157
Member Avatar for hbelle.28

Hi, I am taking my first Java class this semester, and I have run into an assignment that just has me stumped: I am to write a program that will count the number of occurrences of each letter in a string the user inputs. It is in a section discussing …

Member Avatar for stultuske
0
473
Member Avatar for jhamill

I'm trying to write a program that checks if a input string value contains any capital letters. Is there a way to do this in java?

Member Avatar for stultuske
0
3K
Member Avatar for Orgest

Hello I have write some code to read a specific word from a text file. The file is located in a specific folder. In the folder there are multiple files, i want to read first the file that is upload first in the directory. After I have read file, I …

Member Avatar for stultuske
0
249
Member Avatar for mgold

I'd like to find an algorithm book that's either meant to be or good to use as a reference. By "reference" I mean that it contains all the basic algorithms (machine-learning algorithms especially) like QuickSort, Logistical Regression, Clustering. Preferably, including both the mathimicatical definition as well as psuedo code, or …

Member Avatar for StefanijaV93
0
450
Member Avatar for larnacode

Hi there. Complete beginner on Java and OO principles. Having a little trouble in trying to figure out how to make objects move across the screen. Eventually, this will be a model of the solar system. So I have a planetObject class that represents a planet in the solar system: …

Member Avatar for larnacode
0
285
Member Avatar for Maggie_1

Hi, I'm working on this project right now which probably shouldn't be that difficult but I'm really confused and lost. The assignment's instructions are: "Write a program that uses the Monte Carlo sampling method to estimate the average number of bottles of e-Boost someone would have to drink to win …

Member Avatar for Maggie_1
0
389

The End.