35,618 Topics

Member Avatar for
Member Avatar for alice.cooper.18659

I am trying to make a histogram that represent the number of letter grades that are calculated. So the program reads in a csv file, pulls out the name, average grade and letter grade. From there it creates a histogram based on the letter Grades. Input: Alicia Marks,89,90,100,95,75,85,94,100,90,92 Bobby Ricks,98,79,87,79,9,98,7,19,98,78 …

0
99
Member Avatar for the_ yuo

if input is 0 150 17 the last number is 17 i need program that find how many 17 in 0 to 150? output should be 2 NOTE the program should run for any 3 input number

Member Avatar for chetas
0
303
Member Avatar for fffttt

How to set that one panel contains three panels and each panels has buttons and textfield

Member Avatar for JamesCherrill
0
80
Member Avatar for Violet_82

Hi all, I have just finished with my tict-tac-toe program, and I thought I'd post it here if anybody fancy giving me any feedback. Also, I have a problem with printing the board, probably due to my lack of knowledge in using `printf` as opposed to `println`. Anyway this is …

Member Avatar for Violet_82
0
237
Member Avatar for mike.woeber.5

I would like to know how to design a program(a) to run outside another program(b), that will click a button that comes up while using the program(b). Reason being, is the program that I am using constantly asks me to hit next after scanning a product, so I want to …

Member Avatar for mike.woeber.5
0
149
Member Avatar for somjit{}

this is the problem code : import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.io.IOException; public class Prepared { public static void main(String[] args) { try { readerHelper r = readerHelper.GET_INSTANCE; System.out.print("enter username: "); String user = r.is().readLine(); System.out.print("enter password: "); String pass = r.is().readLine(); Connection con …

Member Avatar for somjit{}
0
225
Member Avatar for somjit{}

the following is taken from joshua bloch's effective java. pg 82: public class InstrumentedHashSet<E> extends HashSet<E> { // The number of attempted element insertions private int addCount = 0; public InstrumentedHashSet() { } public InstrumentedHashSet(int initCap, float loadFactor) { super(initCap, loadFactor); } @Override public boolean add(E e) { addCount++; return …

Member Avatar for somjit{}
0
175
Member Avatar for vivanie

How to coding this? "fill the variabel with bufferedReader and for and will be stop if the variabel=="ZZ""

Member Avatar for stultuske
-1
137
Member Avatar for leah.s.h

You will need to check that the four parameters entered by the user are blank, so you will do the same as you did before but four times. To Identify if the User Presses <enter> You have written a JAVA program that creates a CD object with four instance variables, …

Member Avatar for stultuske
0
305
Member Avatar for ankit.pandey3

Hi friends, Can any one tell me the java program that how to convert Octa Decimal to HexaDecimal without using inbuild functions. I tried a lot but not successful. Please Please Please post the program... Thanks in advance..

Member Avatar for bguild
0
293
Member Avatar for riahc3

Hello Im using the FileUtils.copyDirectory method but it gives me the error of "Failed to list contents of foldername". I know the folder exists and I can write there because creating a file works. What could be wrong?

Member Avatar for riahc3
0
567
Member Avatar for game06

i am using xammp database. and i want to get last ID from my database so that i can insert new stuff in it. the code below doesnt get me the last it. its prints it is adding one next to last it. ex 7, 71, 711, 7111, 71111, but …

Member Avatar for JamesCherrill
0
163
Member Avatar for wolwayne

I am making an examination system desktop application in Java Swing. I have a frame named 'show_class_question' frame. This frame is used to display questions and four options from database. Whenever user clicks 'Next' button I am calling this same frame (show_class_question) again and agian from itself (self - refrencing) …

Member Avatar for stultuske
0
407
Member Avatar for vamshi381

i have text field when i enter a value in it i want to retrive the values matching to the entred word from database and display those values in a pop up window am using jsp and struts oracle 10g database

Member Avatar for stultuske
0
121
Member Avatar for sushants
Member Avatar for stultuske
0
140
Member Avatar for rayden150

I was wondering if you could give me advice, do i need to be extremely focused? also what do i start with, where do i start?

Member Avatar for stultuske
0
258
Member Avatar for kulith

hi im new to java.i wrote a simple programme and need a little help.i should enter an int as the input but when i entere a string, it gives an exception. Exception in thread "main" java.lang.NumberFormatException: For input string: i need a dialog box to be appeared when i enter …

Member Avatar for stultuske
0
308
Member Avatar for harshd89

Hello, We were assigned a hw to come up with a linked list implementation for grades. We are supposed to ask the user how many students there are and then ask for 4 grades for each student and then come up with an avg in 2 different ways i.e sum/4 …

Member Avatar for |-|x
0
4K
Member Avatar for Stuugie

Hi All, I am attempting to execute a dtsx package using Java and I have the following line Process executionProcess = Runtime.getRuntime().exec("dtexec/f\"C:\\Projects\\EconAnalysisConferenceBoard\\EconAnalysisConferenceBoard\\EconAnalysisConferenceBoard\\ConferenceBoardETL.dtsx\""); I keep getting an error saying the file cannot be found but if I run the dtexec in command prompt with the exact same paths and file name …

Member Avatar for Stuugie
0
687
Member Avatar for joseph.lyons.754

I have been tryin to get this to work for the past week if not two >:( with no joy. Worst of all its such a trivial problem. The program asks you to choose a town name from a combo box when you choose the location you shoud be brought …

Member Avatar for JamesCherrill
0
426
Member Avatar for upenrhar

How to get current user connected to a Liferay portal with the help of simple Java code ?

Member Avatar for stultuske
0
37
Member Avatar for greyfox32

I am working on a program which takes a text file as input and stores each word in a hash table along with a count of how many times the word occurs in the text. It seems to work fine until I attempt a file with more than 18 words, …

Member Avatar for bguild
0
261
Member Avatar for game06

I am making a string array so user can type whatever they want. the problem the code i have below user can enter &, alt, up, @, in string array. I want user to enter letters and numbers only, and 1st char has to be letter. I couldnt find any …

Member Avatar for stultuske
0
125
Member Avatar for devanshee

import java.io.*; public class t1 { public static void main(String a[]) { int i; char c='a'; char[] ch={'a','b','c'}; for(i=0;i<3;i++){ System.out.println(ch[i]+" "); } //String s=c.toString(); //char cant be dereferenced String s=ch.toString(); System.out.println(" S : "+s); } } Q-1) I am getting an error while converting a character array to String aoject. …

Member Avatar for stultuske
1
169
Member Avatar for chivas12

i wanted my program to show up in a Jframe the code reads the pixel color i want the frame to display red= pixel color blue= pixel color and green= pixel color and how would you make the background color of the frame change according the mouse movement for example …

0
100
Member Avatar for game06

i have two classes. Main class and tester class. I have to create a textfield so your can enter there name. The problem is that in tester class i am getting error on add() method. is there simple fix for this? i want to create the textfield in tester class …

Member Avatar for bguild
0
143
Member Avatar for 9tontruck

Hi, I downloaded CDT 8.0.2 for Indigo and installed it through help->install software. But in right click on project->properties, I can't see C/C++ build option in the properties! What happened!

0
104
Member Avatar for Violet_82

Hi guys, I am not sure this is right or not. If I have one variable whose value is true or false and I want to use it in an if statement I could easily do if(variable1){ //do this and that } but I want to check 2 variables I …

Member Avatar for Violet_82
0
193
Member Avatar for Gruff

Alright so I am still kinda new to java I am working on a lottery program that will ask the user how many tickets they would like (default being five) and each ticket has a random set of numbers plus a jackpot number: this is the code have so far... …

Member Avatar for JamesCherrill
0
133
Member Avatar for kay19

Well i'm having trouble with this code with the following lines: return new AccountID(this); return new Customer(this); ^These two from the clone method. Customer myCustomer = new Customer(newBank.Find(myAccountID)); ^Not sure what i'm doing wrong here, it is on 4 different methods of deposit, withdrawal etc. Not only that, but my …

Member Avatar for kay19
0
209

The End.