Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
7
Posts with Upvotes
7
Upvoting Members
7
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #1K
~28.4K People Reached
Favorite Tags
Member Avatar for ilovejava

hey guys I need help to implement a array list I have the skeleton structure written out but some of the methods do not work and I have troubles with the remove method please help and how do you do isEmpy method [CODE]//tried my best dont get some stuff public …

Member Avatar for Slimmy
0
198
Member Avatar for Jessurider

how to convert [B]\[/B] to [B]/[/B] in strings using java String path="C:\Documents and Settings\user\My Documents\Crypt.avi"; Eventhough [B]path.replaceAll("\","/");[/B] does'nt works!!!!! can anyone tell me how to do this?

Member Avatar for Slimmy
0
69
Member Avatar for Nandomo

I am making a Gui for an inventory. And I want for each time a person presses my next button, the jLabels to display the next item in the arrayList. Right now I'm stuck as it only displays the last element, Any help please? [CODE] // action on the button …

Member Avatar for Nandomo
0
143
Member Avatar for shady05

i am creating an audio Player . I just wanted to implement this particular iTunes software feature i.e COVER FLOW , in which songs appears in thumbNails and with the help of left & right arrow keys we could scroll the playlist I was wondering if anyone could help me …

Member Avatar for shady05
0
123
Member Avatar for tenlrt

Hi, An urgent help is required. I need to display colored font in command prompt during execution of a java program on Windows Machine. I am unable to do so and while I searched for online help I came across JANSI library. Is there any other simpler and better way …

Member Avatar for Slimmy
0
129
Member Avatar for Daigan

Hi, so I'm new with Java and the programming thing. Here's my problem. I need to do an errortrap without using a loop and creating a method solely for errortrapping so I figured i need to use try and catch statements but I'm not sure how. Basically my problem is …

Member Avatar for Daigan
0
121
Member Avatar for TigerTeck

[CODE]public class Card { public Card(String cardValue) { input = cardValue; } public String getDescription() { if (input.length() == 2) { if(input.substring(0,1).equals("A")) first = "Ace of "; else if(input.substring(0,1).equals("2")) first = "Two of "; else if(input.substring(0,1).equals("3")) first = "Three of "; else if(input.substring(0,1).equals("4")) first = "Four of "; else if(input.substring(0,1).equals("5")) …

Member Avatar for TigerTeck
0
216
Member Avatar for code 117

Hi guys, hope you can help. I'm creating a mixture of an employee scheduling system with elements of a Human Resource Management System for small to medium businesses. I ideally want to create a java application with a database backend, which I'm trying to see if I can apply sql …

Member Avatar for Slimmy
0
510
Member Avatar for newbie14

Dear All, I have a snippet of code as below. Here I build one db connection and is shared across. I can put the dbconn.commit in place and no problem. The problem when I put the dbconn.rollback I get this sort of error "commServer.java:1798: unreported exception java.sql.SQLException; must be caught …

Member Avatar for newbie14
0
242
Member Avatar for lbgladson

I have a program to add coins into a piggy bank and calculate the total but my program is not asking how many of each coin and will not give me the total. [code] import java.util.Scanner; public class PiggyBankTester { public static void main(String[] args) { int pennies; int nickels; …

Member Avatar for sirlink99
0
1K
Member Avatar for lbgladson

I have an assignment to gather information on students and their grades and then display the information using a for loop. I have the following code but it is not displaying the information correctly. Any help would be great. [code] public class Grader { String last; String assign; int score; …

Member Avatar for Slimmy
0
148
Member Avatar for buba_kazouba

[CODE]package amena; import java.awt.Color; /** * FileSystemModel is a TreeTableModel representing a hierarchical file * system. Nodes in the FileSystemModel are FileNodes which, when they * are directory nodes, cache their children to avoid repeatedly querying * the real file system. */ public class FileSystemModel extends AbstractTreeTableModel implements TreeTableModel { …

Member Avatar for Slimmy
0
225
Member Avatar for sarathsshanker

[code]import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.ServletException; import javax.servlet.http.HttpSession; import java.util.ArrayList; import java.util.StringTokenizer; import java.io.PrintWriter; import java.io.IOException; import java.text.DecimalFormat; public class ShoppingServ extends HttpServlet { String link; String[] books; String[] music; String[] computers; String<ArrayList> selitems; // JAVA.STRING.LANG doesnot take parameters error String<ArrayList> cartitems ;// JAVA.STRING.LANG doesnot take parameters error …

Member Avatar for Slimmy
0
187
Member Avatar for laguardian

So I'm creating a program that calculates the “Sum of Powers” after the user inputs two integers N and M. The sum of powers is computed as N^M+ N^(M-1)+ N^(M-2)….+N^0. But I don't know how to finish it. I'm kinda confused using return method, loops, etc. Here's what I have …

Member Avatar for Slimmy
0
2K
Member Avatar for sirlink99

I am working on a snake game. I have posted about it before. It is going well, and now I would like to implement a high score option, that saves the score online, so that everyone can see it. I am planning to make a menu, that will have a …

Member Avatar for Ezzaral
0
671
Member Avatar for trivax

hi.. i hav knowledge of j2se but i don't hav any knowledge how to create web application with j2ee.. i wanted to use jdeveloper for this last year project.. i donno where to start from. Need help..plzz.. anyone guide me where to start and what to study and learn? and …

Member Avatar for Slimmy
0
92
Member Avatar for SMITA6076

I wrote the following method to get the current date for an invoice: [CODE] public String getDate() { DateFormat dateFormat = new SimpleDateFormat("MMMMMMMMM d, yyyy"); Date orderDate = new Date(); return dateFormat.format(orderDate); }[/CODE] but now I have to add two weeks (14 days) to that date (to get the expected …

Member Avatar for SMITA6076
0
917
Member Avatar for mjavaid

Hi all. How would I modify my current program to make it perform the conversion with the main method calling other methods instead of performing the conversion in the main method itself? I have attached a .pdf file that has a list of all the methods that must be used …

Member Avatar for mjavaid
0
107
Member Avatar for nickcolb

So far my professor has given us code and we basically "fill in the blanks" of the methods below the main code. I've done all the other methods, but am now stuck on the Taylor series portion. The code below is to calculate angles, and one of the methods called …

Member Avatar for Slimmy
0
1K
Member Avatar for sikelesS

Hi there, first post! First off, I apologise for asking such a basic question, but I am new to Java (done VB before..) and was wondering if you could please help me out with a little problem I'm having! I have a method that reads data from a text file, …

Member Avatar for Slimmy
0
189
Member Avatar for harinath_2007
Member Avatar for Slimmy
-1
132
Member Avatar for Taimoor Rana

hello guys, I don't have a programming question but a mathematical one but need to implement it in a program. I need a formula the will let me find the X,Y position of Circular motion. For example: earth travelling around the sun, I would wanna know the X,Y position of …

Member Avatar for Slimmy
0
137
Member Avatar for ChieftanBill

I've been working on this program recently and its been blowing up with errors, every time I work through a bug, more surface. Now I keep getting incompatible type errors at the spots I marked out. If someone could help me sort it out or point me in the right …

Member Avatar for Slimmy
0
126
Member Avatar for vinithktp

Hi, I have a question regarding Memory Leak. The below mentioned JSP code can generate any Out of memory exception [CODE] String str = tempStrView.getSTR(); String newStr = str+"'"; String rpcStr = "&nbsp;"; String convStr = newStr.replaceAll("'",rpcStr); [/CODE] Thanks in advance, Vinith

Member Avatar for ~s.o.s~
0
104
Member Avatar for Ralphael
Member Avatar for JamesCherrill
0
139
Member Avatar for Viper588

Hey guys im very new to java and am having some difficulty solveing a problem for my class. I have an array of 10 numbers and have to write a method that will eliminate any duplicates in the array and return that array. Iv been toying with different thing for …

Member Avatar for Viper588
0
244
Member Avatar for Ralphael

I want to create a digital clock in Java can any one help me out i am having problems updating the second variable

Member Avatar for Slimmy
0
91
Member Avatar for fabricetoussain

for home work assignment we have to Implement a class Product. A product has a name and a price, for example new Product("Toaster", 29.95). Supply methods getName, getPrice, and reducePrice. Supply a program ProductPrinter that makes two products, prints the name and price, reduces their prices by $5.00, and then …

Member Avatar for Eric Cute
0
634
Member Avatar for num90
Member Avatar for pbl
0
79
Member Avatar for endro

Hey all, I need some help on this program cause I'm stumped. Everytime I compile this program is gives me an error of either "cannot find symbol" or "int cannot be dereferenced". I'm still playing around with the code but I might have to put the other class in a …

Member Avatar for endro
0
133