Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
82% Quality Score
Upvotes Received
15
Posts with Upvotes
12
Upvoting Members
11
Downvotes Received
3
Posts with Downvotes
2
Downvoting Members
3
6 Commented Posts
0 Endorsements
Ranked #1K
~23.6K People Reached
Interests
I like anything that deals with computers and technology
Member Avatar for 1bung100

I've created a JButton and a Jtextfield in java swing. I want the button to perform the same function as BackSpace key of the keyboard. Is there any means to assign the properties of the the BckSpace key to the button, i.e. inheriting the properties of the key.

Member Avatar for Kubu Letuka
0
2K
Member Avatar for The Dude

1. How Do You Catch A Unique Rabbit? Unique Up On It. 2. How Do You Catch A Tame Rabbit? Tame Way, Unique Up On It. 3. How Do You Get Holy Water? You Boil The Hell Out Of It. 4. What Do Fish Say When They Hit A Concrete …

Member Avatar for Ene Uran
9
3K
Member Avatar for wschamps42

Hello I am new to C and was wondering if someone could just please explain to me what this function does? Thats all I just need help understanding it. I'm new to C so some one the syntax is tough for me to understand and Im not sure what the …

Member Avatar for TrustyTony
0
128
Member Avatar for haoth

Hi, I am having a bit of trouble finding a way to check a string for the highest and lowest number. Example: I would have a: [CODE]String example = "1 3 5 9 4 3";[/CODE] And now I would have to check which is the lowest number and the highest …

Member Avatar for haoth
0
354
Member Avatar for mehnihma

I have a problem with case sensitive input my options are s and b and how to make a program when I input capital B or S to continue? [CODE] // options for selling and buying stocks System.out.println("\n"); System.out.println("Options as single upper or lower case character : "); System.out.println("\tB to …

Member Avatar for mehnihma
0
150
Member Avatar for thompsonSensibl

Hi there, I am trying to get the words (city names) from a user input. For example, the inputs: [CODE] String input1 = "Pyeongchang 135135.13 531.351"; //Note: "Pyeongchang" is of one word. String input2 = "New York 3543.25 25352.523532"; //Note: "New York" is of two words. [/CODE] I need to …

Member Avatar for JamesCherrill
0
170
Member Avatar for D3X

Hi guys, i have been able to get this transfer function to work but only with one account. i'm not too sure how to get it working for the other account also. Any help would be greatly appreciated. [CODE]static String doTransfer(String amount){ // Withdraw cash -- called from ATMWithdrawl String …

Member Avatar for JeffGrigg
0
128
Member Avatar for Genericusername

Hello, I am working on a program that generates 100 random integers and then sorts them into even and odd. When i go to compile the program, it tells me that it cannot find variables randonum, evennum, and oddnum. I'm new to arrays so i'm guessing i declared/ defined them …

Member Avatar for Zetlin
0
240
Member Avatar for vishal1949

I am making a program where i have to write a recursive function that reverses a string. I am a new programmer and need help. The function should return a String and take only one argument, also a String. [CODE]import java.io.*; public class RecursiveFunction { public static void main(String [] …

Member Avatar for JeffGrigg
1
385
Member Avatar for tammy12w

help im new to this.... why are get method useful?? for example why write this: [CODE]public class name { private String yourname; public void setname(String Fname){ yourname= Fname; } public String getname(){ return yourname; } public void sayying(){ System.out.printf("hello %s", getname()); } }[/CODE] when this also does the same thing …

Member Avatar for stultuske
0
116
Member Avatar for Muralidharan.E

Hi friends If we will override nonstatic methods or if we will overload non static methods means shall we say it is the run time polymorphism? Is that so how to give example for compile time polymorphism in java? If i will override static method means, friends are saying it …

Member Avatar for Zetlin
0
255
Member Avatar for techy23

Hi! Could Someone please explain me the difference between[I][B] "Pass By Value"[/B][/I] & [B][I]"Pass By Reference"[/I][/B] In Java? I can't understand it clearly. Please give some [I][B][COLOR="Green"]easy example[/COLOR][/B][/I] and little [COLOR="Red"][B][I]description[/I][/B][/COLOR]? Any help would be appreciated. Thanks.:-/

Member Avatar for Muralidharan.E
0
170
Member Avatar for Muralidharan.E

[CODE]class Test{ static String str[]; public static void main(String args[]){ System.out.println("args "+args); System.out.println("str "+str); } }[/CODE] [U]Output[/U] args [Ljava.lang.String;@3e25a5 str null My doubt is ... How some object address is printing for args when it has not initialise. In case it has got initilised ,without array size specifiction how its …

Member Avatar for Zetlin
0
188
Member Avatar for adanaz

Hello I've made a program using JCreator. It was working fine and all of a sudden it won't run anymore. I get this message: [CODE] --------------------Configuration: <Default>-------------------- Usage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options include: …

Member Avatar for adanaz
0
2K
Member Avatar for cozmo87

Hi everyone, I'm writing a program that reads numbers from a text file, stores them in a table, does calculations on the numbers and displays the result in a jTable. The scanner reads the numbers as doubles and stores them in an ArrayList. My tablemodel is very similar to the …

Member Avatar for Zetlin
0
169
Member Avatar for a.oprea

I have made an array of JButtons arranged in a 2x3 box encased in a JPanel with GridLayout. This works fine. But i want to add a JLabel with text under this panel. Problem is that the JLabel, represented here by itemsInfo will not show, and I can't figgure it …

Member Avatar for hfx642
0
93
Member Avatar for Zetlin

Hello I am seeking guidance for a project that requires the use of a database. Obviously I will be programming in Java! my question really is: what is the best database that can be used with Java? My program will be a desktop application which will use the database locally, …

Member Avatar for Zetlin
0
127
Member Avatar for Xufyan

Hello Everybody, please explain me what is pass by reference ,i know what does it mean but i could not find any of its simple example that differentiate between pass by reference and pass by value :( please help me i have spent almost 4 hours searching for it but …

Member Avatar for Zetlin
0
357
Member Avatar for BEBELINDO

my code plays a midi java sound file , but i want to play it in a loop constantly ! can somebody help me please ! [code]import javax.sound.midi.*; import java.io.IOException; import java.io.InputStream; import java.io.FileInputStream; import java.io.FileNotFoundException; public class MidiPlayer{ public static void main(String[] args) { try { Sequencer sequencer = …

Member Avatar for Walter Scott
0
271
Member Avatar for kyojin

I can't seem to get my access to the private xCoor and yCoor. I try couple of things i just learn in school but none of em make sense. Can someone explain and tell me a way to get access to those xCoor, yCoor, width, and height while still leaving …

Member Avatar for Ezzaral
0
178
Member Avatar for LianaN

Hi! how could I delete all spaces in the string: [ICODE]String str = "AAA BBB CCC";[/ICODE] in order to get "AAABBBCCC" as a result? The following doesn't work: [ICODE]str.replaceAll(" ", "");[/ICODE] Thanks!

Member Avatar for LianaN
0
160
Member Avatar for Zetlin

Why did the chicken cross the road? To find the rate of impact failure between v1.0 and v2.0 P.S think of a new word that starts with ā€œVā€ Now that you know, my responses to this question write your own.

Member Avatar for reccakeys
0
145
Member Avatar for vmanes
Member Avatar for macgurl70
1
992
Member Avatar for Zetlin

Hello everyone, first of all I would like to say that I'm new to java and I'm getting this error while trying to compile a program from a book that I am using to learn the language. Ok so the program is very basic just two classes here is my …

Member Avatar for javaAddict
0
1K
Member Avatar for Zetlin

Alright guys, so right now I'm working on a program that finds the current focused window and adds a KeyListener to it. The problem is that unlike when you have a window running and you add a KeyListener to it and it stays working until you close the window, once …

Member Avatar for moutanna
0
198
Member Avatar for Zetlin

Hello everyone, as some of you might know NetBeans 6.9 has been release, now I already have 6.8 installed on my computer. The problem is that whenever I try to uninstall NetBeans 6.8 I get some weird error and I don't know how to fix it. Here is what I …

Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for annazpereira

Hi Guys, I know loads of ppl hv seen similar problems but I just can't figure out whats wrong with my code. I keep getting the following error: Upgrade.java:133: unreported exception java.lang.Exception; must be caught or declared to be thrown new SpFwUpgrade(sp, UrlPath); SpFwUpgrade is called in Upgrade.java as follows: …

Member Avatar for annazpereira
0
212
Member Avatar for rowdyboudy

I need to write a method that returns true if all the values in two int arrays are in the range 0-10, otherwise the method returns false. The code I have written is below but is there a better/more effient way to do this? [CODE] private int[] myArray1; private int[] …

Member Avatar for Zetlin
0
82
Member Avatar for Zetlin

Ok so I'm learning from the book Head First Java, second edition, and I'm having a little trouble with some code. The code I'm working with compiles just fine and gives the output that I want(sort of) but whenever I run the code is doesn't stop, as if it was …

Member Avatar for Zetlin
0
213
Member Avatar for simplyflawless

hey I'm trying to write a method that converts milliseconds to hours, minutes, and seconds using the following header: public static String convertMillis(long millis) My method needs to return a string as hours:minutes:seconds. For example, convertMillis(5500) returns a string 0:0:5. this is what i have so far, can someone please …

Member Avatar for Zetlin
0
5K