32,204 Topics

Member Avatar for
Member Avatar for theadjectivenou

I need help trying to figure out what I am doing wrong. my teachers wants two different sentences to read as "Wow, (insert word 1) and (Insert word 2) are funny" and on the second line he wants them reversed to read "Wow, (insert Word 2) and (Insert Word 1) …

Member Avatar for Taywin
0
112
Member Avatar for ravsau

I have written a solution to the following assignment but I wont get any output. I used System.out.println randomly to see where my program stops and I figured out it is righ after the while (inputFile.hasNext()) method. Any suggestion will be great. Thanks! my assignment: build a program that uses …

Member Avatar for stevanity
0
3K
Member Avatar for gahhon

[CODE] //Member Login public static boolean memberLogin(){ int memberPassword = 123; boolean password = false; int confirm = JOptionPane.showConfirmDialog(null, "Are You A Member? ", "Member Confirmation", JOptionPane.YES_NO_OPTION); do{ while(confirm == JOptionPane.YES_OPTION && password == false){ String tempCurrentPassword = JOptionPane.showInputDialog(null, "Please Enter Your Password", "Default Password = 123"); int currentPassword = …

Member Avatar for stevanity
0
204
Member Avatar for paulsoncall

Hi - I'm having a hard time figured out how to print the triangle shape below using loops. I did the two previous triangles with no issue but have no idea how to get the spaces in there. I'm really confused and would appreciate any help. [CODE] * ** *** …

Member Avatar for paulsoncall
0
259
Member Avatar for persianprez

So this is my assignment: Represent the concept of a Number. For this example a Number is a thing that can be added subtracted, multiplied and divided. Each of these operations is binary and produces a Number as a result. Encode the the Notion of of an Int (an integer …

Member Avatar for persianprez
0
144
Member Avatar for ronak127

hey guys I'm a newb to this C++ programming and I need help. I've made a non-recursive GCD C++ code, but i was having problems with the algorithm. Can someone help please? [ICODE]import java.util.Scanner; public class GCD { public static int GCD; public static int div; public static int remainder …

Member Avatar for mrnutty
0
176
Member Avatar for Shinku

[CODE]import java.io.*; import java.util.ArrayList; import java.util.Scanner; class Arralist{ public static <Cd> void main(String [] args) { ArrayList<Cd> liste = new ArrayList<Cd>(); try { Scanner input = new Scanner(new File("text.txt")); while (input.hasNext()) { liste.add(input.next()); } input.close(); } catch (FileNotFoundException e) { e.printStackTrace(); } } }[/CODE] I got error like this : …

Member Avatar for Taywin
0
140
Member Avatar for StudentCS

im stuck in this terrible problem, I have a SOAP based webservice implemented in Java.The client besides other data is supposed to have "male" and "female" checkboxes so the user can either select one of them or both and the client is supposed to send it to the server to …

Member Avatar for hag++
0
561
Member Avatar for Hikari123

This program runs very smoothly, except that it doesn't print the value of i and is obviously not running the second loop to calculate the margin of error but I don't understand why. Any help? [CODE] // This program was designed to calculate the value of pi import java.util.Scanner; public …

Member Avatar for Hikari123
0
423
Member Avatar for ZeroEddy

Hey, I have been studying Java for a year in college and this year we started Object Oriented Programming. We have been givin some assignments and stuff but they all include creating Objects and Classes. Does anyone know of any good resources for Creating these as I am slowing down …

Member Avatar for ZeroEddy
0
237
Member Avatar for mydreamgirl

Xuggle can handle many different video formats. What I am thinking about is to wrap the Xuggle into Swing component, and make a start/pause button and a progress bar on the top of it. Any suggestions? Sample codes would be great. MyDreamGirl

Member Avatar for mydreamgirl
0
409
Member Avatar for danthevan

Hello, I'm trying to make a chatting app just for educational purposes, to improve my skills and I got a question, or maybe a problem. Look at the Code first: [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* …

Member Avatar for danthevan
0
160
Member Avatar for dhija22

hi all ! i want to uninstall java java (TM)SE Developement kid 6...so i try to uninstall it but i cant i take a message like this [COLOR="Red"][B]Error 1723. There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. …

Member Avatar for stultuske
0
76
Member Avatar for dandeliondream

Hi, I would like to enquire about web crawler. I have a sch assignment whereby i need to crawl websites but it has to be specific. Display first 10 urls of websites with keyowrds such as IT products around a shopping street/district. I manage to find tutorials to crawl a …

Member Avatar for Taywin
0
125
Member Avatar for ali11

I did it without using GUI because i am not sure how to do in GUI.I need help to put these code in GUI. [code]import java.util.Scanner; import java.util.Stack; /** This calculator uses the reverse polish notation. */ public class Calculator { public static void main(String[] args) { Scanner in = …

Member Avatar for stultuske
0
274
Member Avatar for hhagood

Using a Single-Array, create a program that asks the user to input a day of the week, the high temperature, and the low temperature. Calculate the Average High and Low.

Member Avatar for Ezzaral
0
449
Member Avatar for lovelyrockrchic

I'm trying to make a Tic Tac Toe game for my Java class. I am not able to use JButtons only JPanels. I'm stuck on the part where my program determines if there are 3 x's or o's in a row. [CODE] public void winner() { if(3 = tictactoe[0].turn + …

Member Avatar for hiddepolen
0
274
Member Avatar for cgen

Can someone please help me go over these codes? There are no bugs in all except LinkedListBinary.java and I have no idea why. The lines that are causing me problems are: [CODE] /** Returns an iterator of the elements stored at the nodes */ public Iterator<E> iterator() { Iterable<Position<E>> positions …

Member Avatar for hiddepolen
0
484
Member Avatar for cgen

Assuming that the values 1 to 7 are equally likely (if chosen randomly): Draw a 7-node binary search tree containing these values that would, on average, give the fewest number of comparisons. I'm not exactly sure how to answer this question

Member Avatar for Taywin
0
324
Member Avatar for drogba123

Hi, Anyone know what is the math for manhattan distance vs travelling distance? and which one is faster? thanks. Regards, Anthony

Member Avatar for Taywin
0
99
Member Avatar for quartaela

hi there i am working on a memory game project and my main problem is when i start the game user must not see the icons of buttons, when he/she press on a button then the i con should reveal, but some methods like [CODE].setPressedIcon()[/CODE], [CODE].setRollOverIcon()[/CODE] dont work if i …

Member Avatar for mKorbel
0
287
Member Avatar for djmonster

Hello, I have a Java homework that I need to extract the data from ASCII Text file. Here is the ASCII text file [url]http://weather.noaa.gov/data/nsd_bbsss.txt[/url] 72;211;KTPA;TAMPA INTERNATIONAL AIRPORT ;FL;United States;4;27-58N;082-32W;27-58-04N;082-31-33W;8;11; 72;212;KCTY;CROSS CITY AIRPORT;FL;United States;4;29-38N;083-06W;29-37-49N;083-06-31W;13;12; 72;213;KAYS;Waycross / Ware County, Ga;GA;United States;4;31-15N;082-24W;31-15N;082-24W;46;46;P 72;214;KTLH;TALLAHASSEE REGIONAL AIRPORT ;FL;United States;4;30-24N;84-21W;30-23-46N;084-21-20W;25;16; 72;215;----;Peachtree City, Ga.;GA;United States;4;33-22N;084-34W;33-22N;084-34W;262;244; I need …

Member Avatar for hiddepolen
0
586
Member Avatar for LiquidSolid

Hey guys, I am making A Vending Machine Program and seem to be getting error's when trying to do things outside a class and stops the Program. (Vending machine should keep looping until Quit is typed, and it will display a summary of money and cans left. [CODE] ******SODA MACHINE …

Member Avatar for Zaad
0
162
Member Avatar for SweaterGirl

I'm a beginner, just starting to take a java class! I'm doing this for homework. When I try to run this, it runs- but when it gets to the question that asks "Which kind- Chocolate Chip or Gingerbread Man?" and I answer, it just skips right to the next question. …

Member Avatar for SweaterGirl
0
161
Member Avatar for neo_31591

[code] BufferedReader reader = new BufferedReader(new FileReader(strPath)); String line; while ((line = reader.readLine()) != null) { out.println(line); } [/code] My textfile is like: Statement1 Statement2 Statement3 the output i get is: Statement1Statement2Statment3 I need the output as it is..same as the text file...i have tried to identify the newline charc …

Member Avatar for neo_31591
0
765
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
675
Member Avatar for nsyncpilu

Hy , I have a little/big problem : I am a student and i live in a campus where i need to use a proxy and port to connect to internet. The app i made is a management system for a store ... and it is local. I used MySql …

Member Avatar for peter_budo
0
270
Member Avatar for meme dreame

hi everyone i have a program about the smallest and largest values that user input and the program decide which is the largest which is the smallest ,so i solved it and it worked fine but it's giving me the 2 values are the same the largest same as the …

Member Avatar for meme dreame
0
164
Member Avatar for nasimalotaibi

i have error: illegal start of expression can you help me ?? [CODE] public void AddBefor(int befor,int a) { if(head!=null) { if(head.value==befor) { IntDLLNode t=new IntDLLNode(a); t.next=head; head.preve=t; t.preve=null; head=t; } else { IntDLLNode t; for(t=head;t!=null;&& t.value!=befor;t=t.next); if(t!=null) { IntDLLNode t1=new IntDLLNode(a); t1.next=t; t1.preve=t.preve; t.preve=t; t.preve.next=t; } } } } …

Member Avatar for nasimalotaibi
0
146
Member Avatar for ilovejava

lets say i have a grid----->grid[10][10] i want to scan the grid for a char 's' what should I do should I... do a enhanced for loop and how can any show a example

Member Avatar for ilovejava
0
176

The End.