Posts
 
Reputation
Joined
Last Seen
Ranked #71
Strength to Increase Rep
+15
Strength to Decrease Rep
-3
85% Quality Score
Upvotes Received
358
Posts with Upvotes
282
Upvoting Members
128
Downvotes Received
56
Posts with Downvotes
47
Downvoting Members
36
111 Commented Posts
~871.84K People Reached
Favorite Tags
Member Avatar for Duki

Well I just started eating dinner and thought this would be a neat topic. Everyone knows we love to eat while on the computer; two birds, one chair. I'll start it off: Deli Sandwiches, macaroni salad, potato salad and a Pepsi :)

Member Avatar for Dani
22
17K
Member Avatar for vegaseat
Member Avatar for Reverend Jim
15
13K
Member Avatar for dsmush

[SIZE=4][FONT=Arial]Hi, I'm creating an application that makes use of the GridBagLayout as it is the most useful layout manager for what I need. I made a JPanel and added it to the frame. The result I'm currently getting during run-time is a JFrame with a JPanel placed in the center. …

Member Avatar for Toby_6
1
3K
Member Avatar for Xeros606

Not an ArrayList. An Array. For some reason, my teacher (or rather, the lesson plan we are using) requires that we make a program that takes an array of integers and removes all the zeroes. So far I have: [CODE] public void remove(int index) { for(int i = index; i …

Member Avatar for JamesCherrill
0
3K
Member Avatar for Archenemie

Im looking for the "best" GUI builder for java. I use Eclipse to write my scripts, and i would appreciate you guys telling me your favourite GUI Builder and the reasons why. Thanks

Member Avatar for dotxyteam
0
2K
Member Avatar for rudypooh786

Write a Java application that calculates the number of repayments for a loan based on the initial loan amount, annual interest rate and monthly payment. The user enters these values and application uses a loop to display the balance each month after payment has been made. Note that interest is …

Member Avatar for KAIWEN KEVIN
0
4K
Member Avatar for dmanw100

I'm trying to read in from a .txt file with a Scanner (see code). For some reason this line of code will never execute even though it can open the file and there is, in fact, data in it as such: Name Name Number Number [CODE] File playerFile = new …

Member Avatar for JamesCherrill
0
965
Member Avatar for rupali

How to calculate time complexity of any algorithm or program .... need help on this..

Member Avatar for jamie_13
2
48K
Member Avatar for ka-ii

i have learn this Java since last month for my work purposes. i wanted do this exercise. this is Vending Machine Program. I don't if write it in a wrong way. So i need somebody to show me the in my code. i know there must be wrong somewhere in …

Member Avatar for JamesCherrill
0
14K
Member Avatar for k2k

hi, does anyone know how to insert a background picture to a JPanel? I have googled around, found something seem more difficult than it should be, and a simple one as below but not showing the pic. [code] midBoard = new JPanel(); JLabel pic = new JLabel(new ImageIcon("Sunset.jpg")); //midBoard.setBackground(java.awt.Color.RED); midBoard.add(pic); …

Member Avatar for JamesCherrill
0
14K
Member Avatar for cpsusie

Alright guys, I'm a total n00b to assembly. NOTE: I am not a student -- I am a professional lawyer who loves to tinker with the computer and waste time. Using Visual Studio 2008 Express (C++), I actually managed to write a function in assembly language that evaluates a character, …

Member Avatar for Zack_7
0
11K
Member Avatar for iMaZx

Question: Estimate the time it will take to cut the grass of five clients. Given the length and width (in meters) of a rectangular yard and the length and width of a rectangular house situated in the yard, compute the time required (in minutes) to cut the grass at a …

Member Avatar for rproffitt
0
434
Member Avatar for Isky

Hi, I'm new to this Java world, and just can't figure out this problem. After I use nextInt or nextDouble, and try to use nextLine, it won't work unless I put nextLine twice. What's the problem there, and what would be the good way to handle this? Just gave a …

Member Avatar for stultuske
0
21K
Member Avatar for hhappak

Hello, I am facing a problem I cant seem to find an efficient solution for. My application is supposed to parse a text file while another process is continuously adding to it. I have tried scanner and inputstream but both seem to stop once they hit the end of the …

Member Avatar for rproffitt
0
5K
Member Avatar for elektro123

Hello! I have to implement Adaptive Huffman Coding in C++. I can't find good source of knowledge about this algorithm. If someone know websites describing Adpative Huffman Coding in intelligible way, please post them. In addition, I prefer pseudocode, than steps/block scheme. Thanks in advance! PS. If I posted my …

Member Avatar for Zlatan25
0
3K
Member Avatar for playagain

Please help me to build a list of examples of stack and queue in real life situation... Conditions: The object concerned must only one object. And the object must be tangible. Example: Queue (FIFO): The bullet in a machine gun..(you cannot fire 2 bullets at the same time) Stack (LIFO): …

Member Avatar for priya..
-2
12K
Member Avatar for vegaseat

The strange title comes from a skit by Benny Hill, where he tells his wife all the facts she shouldn't know, but she always answers "I know! I know!" Anyway, this thread is suppose to be a collection of strange facts. Let's have fun! Here are a few facts to …

Member Avatar for vegaseat
11
9K
Member Avatar for OrangeNaa

[B]I'm totally stuck on this problem for homework::[/B] *** [I]Write pseudocode to represent the logic of a program that allows the user to enter values that represent the radius of a Circle. The Program calculates the Diameter (by multiplying the Radius by 2) and then calculates the Circumference (by multiplying …

Member Avatar for channasrey7
0
1K
Member Avatar for Nikki_77

Write a class named Car that has the following fields: yearModel. The yearModel field is an int that holds the car's year model make. The make field references a String object that holds the make of the car speed. The speed field is an int that holds the car's current …

Member Avatar for stultuske
0
22K
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
906
Member Avatar for himanjim

The code simply captures your working window as jpeg image and stores it in the same directory as where your java class after compiling by javac is being stored

Member Avatar for Ashan_1
0
2K
Member Avatar for doha786

i have few txt files in one folder. i need a program that will open that folder and read all files one by one to find a string and give me output. so far i got code to do this from only one particular txt file. but i cant make …

Member Avatar for JamesCherrill
0
4K
Member Avatar for imclumsy

Hi, I am trying to create a method to check if a binary tree is an AVL tree without using the height method of the author's binary tree. This is my code USING the height: [code] public boolean isAVL(BinaryNode<AnyType> t) { int leftSubtreeHeight; int rightSubtreeHeight; if (t == null) return …

Member Avatar for JamesCherrill
0
254
Member Avatar for debasisdas
Member Avatar for James_28
8
16K
Member Avatar for shivers20

I am having some difficulty, any advice would be gladly appreciated. Thanks in advance. [B]Write a program that reads the following information and prints a payroll statement:[/B] [B]Employee's name[/B] [B]Number of hours worked in a week[/B] [B]Hourly pay rate[/B] [B]Federal tax withholding rate[/B] [B]State tax withholding rate[/B] [B]Enter employee's name: …

Member Avatar for stultuske
0
3K
Member Avatar for LooN_iE

[code=Java] package newuser; import java.io.BufferedReader; import java.io.FileReader; public class Main implements ServerConstants { public static void main(String[] args) { BufferedReader lnr = null; String line = null; int N=1000; int totalRecords = 0; String [][] array = new String[N][]; try { lnr = new BufferedReader (new FileReader("LoginData.txt")); for (line = …

Member Avatar for ncmathsadist
0
288
Member Avatar for ang19

Hi have one querery regarding writing in machine code, address- instruction 00000 001 10000 00001 010 10000 00010 100 10000 00011 110 10001 00100 111 00000 10000 000 00001 10001 000 11111 i dont know how to write a program in machine code, which adds up to the numbers stored …

Member Avatar for David_34
0
1K
Member Avatar for nickewus24

Hello! I am having a hard time with pseudo-code and I have come up with what is below for this question: Input a list of employee names and salaries, and determine the mean (average) salary as well as the number of salaries above and below the mean. Do you see …

Member Avatar for heftytest
0
179
Member Avatar for sravan953

Hey guys, As the title says, I want to know how I can reverse the characters in a string, but retaining the placement of the words as such, here's the code I used: [CODE]class reverse { void reverse(String s) { int l=s.length(),j=0; String s1=""; for(;j<l;j++) { char a=s.charAt(j); if(a==' ') …

Member Avatar for JamesCherrill
0
607
Member Avatar for ChPravin

Hello All, Is there any way to add a text file while creating an executable jar file in eclipse? Regards

Member Avatar for devin.mcknight.102
0
8K