Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
15
Posts with Upvotes
14
Upvoting Members
10
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
3 Commented Posts
0 Endorsements
Ranked #540
~33.3K People Reached
Favorite Tags
Member Avatar for adarshcu

Hi All, I need some help with analysing a problem. I have a list of objects that are retreived as part of search results in my webapp page. From the list of these objects, one object is selected and the next screen is populated with the data from this object. …

Member Avatar for JamesCherrill
0
149
Member Avatar for riahc3

Hello Sometimes I update my web service JAR by deleting the old one (waiting for the undeploy message to appear on the console) and putting the new one (and seeing the deploy message) and when I call it, it gives a heap size error. I have to restart the PC …

Member Avatar for jwenting
0
255
Member Avatar for william.bishop.7169

Consider the following: for (int counter = 1; counter < 1; counter -) How many times will the loop execute?

Member Avatar for rohit.deshmukh2009
0
122
Member Avatar for adarshcu

Hi, [CODE] public void getTasksList(ArrayList<PerformTask> TasksList) { // TODO Auto-generated method stub try{ Class.forName("com.mysql.jdbc.Driver"); Connection cn=DriverManager.getConnection("jdbc:mysql:///test","root", "admin"); Statement st= cn.createStatement(); String s1 = "Select * from perform_task"; ResultSet rs = st.executeQuery(s1); System.out.println("Comes Here !! "); while(rs.next()){ rs.getDate("DateOfTask"); java.util.Date jDate = new java.util.Date(rs.getDate("DateOfTask").getTime()); TasksList.add(new PerformTask(rs.getInt("TaskID"), rs.getInt("PersonID") , jDate ,rs.getString("TaskDescription"),rs.getInt("TotalEffort"),rs.getString("TaskName"))); } }catch(Exception …

Member Avatar for rahul.pedduri
0
2K
Member Avatar for adarshcu

Hi All, I've the following scenario which i am not sure can be implemented. I have my Client Side Objects, which have been defined at an earlier stage. Now i need to send the data in the form of XML to the server side who have given me XSD's. Now …

0
95
Member Avatar for adarshcu

Hi, I'm not quite sure if there is a thread for Eclipse related query separately. But since this is a java related one. I'm posting it here. Is it possible that i can have PMD check run on a project by default ? Instead of clicking on my source file …

Member Avatar for DavidKroukamp
0
139
Member Avatar for adarshcu

Hi All, I have a JAR file that contains a .dll file. But during an ant build a ZIP Error is thrown [CODE]error reading D:\COE\Libraries\client\WSQUtil-1.0.jar; error in opening zip file[/CODE] Is there a way to overcome this ? The jar looks fine(opens in winzip) and eclipse build path also references …

Member Avatar for adarshcu
0
221
Member Avatar for adarshcu

Hi All, I need to have a Regex that will not allow just spaces, but it can allow sentences with spaces. It should allow any special characters that occur as well. Actually, it is for a text area of comments. So i want to restrict him from entering just spaces. …

Member Avatar for adarshcu
0
107
Member Avatar for TigerTeck

Directions...Write a program SumOfOdds that has one main method that asks the user to input two odd integers where the first is smaller than the second. The program ouputs the sum of all the odd integers from the smaller output to the larger output. You must use a while loop …

Member Avatar for TigerTeck
0
163
Member Avatar for sike.mausa

[B]I have been given a chunk of code from my teachers, and I just need help getting it to run. I'm very new to java so any help is much appreciated. Here it is:[/B] [code] import java.util.*; import java.io.*; public class CourseStats { static String[ ] studentNames; static int[ ][ …

Member Avatar for sike.mausa
0
600
Member Avatar for <HHH>

hello ! im trying to read few numbers from a file and but each line of numbers in diffrent array now i can read the numbers but in one array any help here is the code [CODE] public static void main(String[] args) throws IOException { File number = new File …

Member Avatar for <HHH>
0
100
Member Avatar for codybuRr

Hey All! New to here, but I have a couple questions: How do I find Average word length, and how to I printout the occurrence of each word size? Needs to look like this: [CODE]length frequency ------ --------- 1 3 2 13 3 24 4 13 5 10 6 2 …

Member Avatar for codybuRr
0
1K
Member Avatar for Nandomo

I am writing a program that gives and grades a test. Currently I am working on reading in the text from a file to administer the test, but am running into limitations. So I have a couple of questions. Is there any way I can read in a segment of …

Member Avatar for Nandomo
0
197
Member Avatar for iThaos

Hello fellow developers, Let me just start by saying I have had an abnormal start to developing. I started first with HTML > PHP > Java. I don't have much experience with Java but I feel quite confident in making PHP applications. I have already searched the forums but nobody …

Member Avatar for iThaos
0
141
Member Avatar for federerforehand

I got dinged points for these: Instructor wants 1. The class is divided into multiple methods, mentioned a Constructor instead? 2. The toString method is included in the Card class to return the face and suit. What did I do wrong? How do I fix it? I am pretty lost …

Member Avatar for adarshcu
0
135
Member Avatar for akingcool

Hi, I am a complete newbie when it comes to programming, the only real knowledge I have was when I created a program 3 years ago in Visual Basic. I guess I know the theory behind programming concepts but have no idea what to do in Java. Not sure if …

Member Avatar for akingcool
0
410
Member Avatar for cdea06

Ok this is driving me absolutely crary! I'm trying to add a static method Account consolidate(Account acct1, Account acct2) to my Account class that creates a new account whose balance is the sum of the balances in acct1 and acct2 and closes acct1 and acct2. The new account should be …

Member Avatar for JamesCherrill
0
240
Member Avatar for Joey_Brown

Hello. What is the best way [an a correct one] to check a value, lets say I need a user input in a certain range. Could I place this check inside a setter method? My setter would than be a boolean return type instead of void? Are there some "laws" …

Member Avatar for Joey_Brown
0
3K
Member Avatar for sasikrishnasamy

Can any one tell me why continue statement is not working in if ? i tried with following code [CODE] outA: if(userValue==randomValue) { int luck=s.nextInt(); int randNo=(int)(Math.random()*(userValue*2+(1))); int arrValue=point[i]; arrValue+=userValue; point[i]=arrValue; continue outA ; } [/CODE] but it shows error

Member Avatar for sasikrishnasamy
0
175
Member Avatar for dennysimon

hello all is there available code to remove line numbers in front of each line of a text file thank you denny

Member Avatar for adarshcu
0
144
Member Avatar for ali11

First i create simple claculator.but now I am trying to change it to RPN calculator by using stack.Can some one help me((especially where to use pop method) because I don't know alot about stack.here is my codes so far. import java.util.Stack; import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import …

Member Avatar for ali11
0
137
Member Avatar for AngelAmi
Member Avatar for stultuske
0
84
Member Avatar for lenyjose

I dont know nothing about Java. Which is the best tutorial site to learn java and how it is easily learn.

Member Avatar for adarshcu
0
127
Member Avatar for anand01

Hi all, I know " String ".trim is used to remove the blank spaces but when i use the following string compare its shows some strange result [CODE]if(" String ".trim() == "String") System.out.println("Equal"); else System.out.println("Not Equal"); [/CODE] It produces the result of not equal. How it produces the result like …

Member Avatar for anand01
0
134
Member Avatar for ashsailesh

i am using an array of JButtons b[23].... my objective is that when i click a button it has to change its background color to black but it is giving a nullpointer exception.... if(ae.getActionCommand().equals("0")) { System.out.println("button b[o] is pressed"); b[0].setBackground(Color.black); } } can anyone help me with this please........

Member Avatar for hfx642
0
121
Member Avatar for TheComputerGuy

Just want to be clear, this is practice, not homework. I'm attempting to understand this a bit better...but I'm a bit lost as what to use for my test...and what exactly will help me get to the base case. Here is what I have so far [CODE] public class int …

Member Avatar for JamesCherrill
0
2K
Member Avatar for begprogram

i have to create a DigitsDisplay application that prompts the user for a non negative integer and then displays each digit on a separate line like such "Enter a positive integer: 789 7 8 9 this is what i have so far Can someone please help me fix this program …

Member Avatar for adarshcu
0
144
Member Avatar for canarian

Hello! I am writing a java program. This application will work on very slow computers too. 1) My application prints on the command line logs about what action did the user. Sometimes one action needs to write 50 lines on command line. Sometimes 2-3 lines... But these 50 lines are …

Member Avatar for adarshcu
0
86
Member Avatar for ilovejava

so this is the assignment Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n). If d(a) = b and d(b) = a, where a b, then a and b are an amicable pair and each of a and …

Member Avatar for Taywin
0
669
Member Avatar for cutterpillow20

Good day sir, can you help me where can i download JDK in java. i have already download JCREATOR pro but i can't download the JDK. i already ssearch JDK but when i download it, it is always interrupted. and i don't know what kind of JDK i download.. can …

Member Avatar for cutterpillow20
0
149