32,204 Topics

Member Avatar for
Member Avatar for rkrishnan2012

Hey guys! I will be hosting an online hackathon next weekend. Please join (50 bucks reward if you win)... In this case, you are given a theme and you need to code something relevant to that theme. The coolest program will get the prize money. You are given 24hours to …

Member Avatar for LastMitch
0
179
Member Avatar for gkaran487

I need to extract ONLY those publications from the web page http://www.informatik.uni-trier.de/~ley/pers/hd/r/Rao:Rahul.html, where the first author is Rahul Rao. I have tried the following code ,but it doesn't give me any output. for( Element element : doc.select("table span.this-person.title") ){ System.out.println(element.text()); } What do I need to get the preferred output? …

0
96
Member Avatar for StefanRafa0

how do i make to play sound in my program after turning on i tryed some codes but the song doesnt start ... I maked the song into 10 secounds but still cannot start. anyone help ?

Member Avatar for stultuske
0
181
Member Avatar for javauser1512

import java.io.*; import java.util.*; class Q9 { public static void main(String args[]) { int a,b,c; System.out.println("\n\t Enter the value of A,B & C "); Scanner sc = new Scanner(System.in); a = sc.nextInt();b = sc.nextInt(); c = sc.nextInt(); System.out.println("\nLargest = "+func(a,b,c)); } public static int func(int a,int b,int c) { if((a>=b)&&(a>=c)) …

Member Avatar for Starstreak
0
316
Member Avatar for pxmur76

Hello, I'm new to Java and GUI programming. I've just created my first simple GUI app which finds the appropriate FedEx zone based off of the zip coded entered in a text field. My question is how do I make it so the user can hit enter after entering in …

Member Avatar for stultuske
0
1K
Member Avatar for Nakeo

Hello, So I am working on a programming assignment that plays a two player blackjack game. I have pretty much all the functionality of the game worked out. Everything was working correctly when I the cards where drawn by my paintComponent() method. However, as soon as I loaded .jpg card …

Member Avatar for tux4life
0
437
Member Avatar for engrjd91

I am the student of computer systems engineering... i have to submit my proposal in 1 month for my final year project. so can any one suggest some good java based final year projects for me ? Plz tell the ideas as much as u can.. and reply as soon …

Member Avatar for stultuske
0
216
Member Avatar for wallet123

why cant i donwload eclipse?? ive been repeating and repeating on the download of eclipse... but cant seem to work..

Member Avatar for jalpesh_007
0
98
Member Avatar for richard.haines.39

Here is my code for my program. import javax.swing.*; import java.awt.event.*; import java.text.DecimalFormat; public class SalesTax extends JFrame { private JPanel panel; // A panel to hold everything private JTextField totalSales; // To get total sales private JButton calcButton; // Calculates everything // Constants for tax rates private final double …

Member Avatar for bguild
0
711
Member Avatar for harinath_2007

Generally people sit in front of computers for a long time which results in eye strain. We indeed forget to take a break. So here is a good freeware called FADETOP which reminds you to take a break after every 15 minutes. However you can change the default time. You …

Member Avatar for CimmerianX
2
321
Member Avatar for zdneth

I want to ask some pieces of advice on where should i start once i have think of a project. what are some basic things or steps you can advice..thanks

Member Avatar for ~s.o.s~
0
182
Member Avatar for VengefulToast

Okay, so it's been awhile since I've posted on here, but I am having trouble figuring this problem out. So, students need to be assigned randomly to experiments. Experiment 1 has 5 participants, 2 has 10 participants, and 3 has 20 partcipants. Every iteration through the loop, it asks for …

Member Avatar for stultuske
0
156
Member Avatar for alavolacoder

I have completed a chat messenger with java socket programming. It's run on localhost, so clients can locate it. If i want to run the server side part of it on a web server, then what i should do? how could the client programs will find the ip and connect …

Member Avatar for softswing
0
172
Member Avatar for Violet_82

HI all, I have just come across this: `System.out.printf("Student %2d: %3d\n");` What does that ":" mean? I assume it is a kind of separator becasue that line prints something like this: `Student 1: 87` thanks

Member Avatar for Violet_82
0
469
Member Avatar for thing2

Hello I modified tutorial code found at http://www.codeproject.com/Articles/119293/Using-SQLite-Database-with-Android?fid=1592519&df=90&mpp=25&noise=3&prof=False&sort=Position&view=Quick&spc=Relaxed&fr=1#xx0xx to create an assignment list app, and when I click modify, delete, or cancel it force closes. Here is my DatabaseHelper.java code: public class DatabaseHelper extends SQLiteOpenHelper { static final String dbName="assignDB"; static final String employeeTable="Assignments"; static final String colID="assignID"; static final …

0
172
Member Avatar for zdneth

Can i have some sample projects in java using netbeans? With source code of course because i need it for our project. I just need it for a guide bcoz i'm not exactly sure where to start. Thankx!!!

Member Avatar for peter_budo
0
442
Member Avatar for hazzag1995

Hey guys, i am developing an android app using Java, using eclipse on a windows PC. The building of the app started off very well, and we managed to get a working prototype working on a android phone using the USB debugging option. I have come across a big problem …

Member Avatar for hazzag1995
0
376
Member Avatar for scippi

This is the block of data I have to work with: 5 5 5 6 5 8 9 5 6 8 good, very good, excellent, good 7 7 8 7 6 7 8 8 9 7 very good, Good, excellent, very good 8 7 6 7 8 7 5 6 …

Member Avatar for stultuske
0
2K
Member Avatar for scippi

Hi everyone, I am using this method to read in a collection of ints and strings then converting the strings to numbers using the switch statement(as stated by my lecturer) and save it back into an array for further processing. However, everytime it gets to the line studentResponses[row][column] = scanner2.nextInt(); …

Member Avatar for henock
0
407
Member Avatar for darylglenng

package wow; import java.io.PrintStream; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Scanner; public class Wow { String question; String answer; int correct=0, number=15; Wow[] quizBank = new Wow[15]; List<Wow> quizList = Arrays.asList(quizBank); public static void main(String[] args) { Wow bank = new Wow(); bank.bankList(); bank.askQuestion(); } //end main public void …

Member Avatar for M4trixSh4d0w
0
331
Member Avatar for darylglenng

>equal button wont work =( /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package calculator; /** * * @author Gatongay Famiglia */ public class NewJFrame extends javax.swing.JFrame { double plusminus; double firstDouble; double secondDouble; double totalDouble; int plusClick; int …

Member Avatar for M4trixSh4d0w
0
328
Member Avatar for Fernando_1
Member Avatar for RozenKristal

I got a java test done and somehow my answer for this question is incorrect, can you guys help me explain it? So the question is: in a binary tree with height 3 the least deep leaf has depth 2 (Root has depth 0). a)Max numbers of nodes this tree …

Member Avatar for RozenKristal
0
296
Member Avatar for DevilDog22

First I want to say hey, new here, hopefully this places is welcoming! Second, I am in a java class and it is my first class and my only experience with programming. So the questions I will be asking will be based off of my assignments. What I want to …

Member Avatar for DevilDog22
0
113
Member Avatar for toldav

I need help to figure it out how to keep track of how many guesses the user is making and NOT allow the user to guess any value thet had already tried. tHANK YOU import java.util.Random; import java.util.Scanner; public class GuessingRand { public static void main(String[] args) { Random rand …

Member Avatar for tux4life
0
330
Member Avatar for ladybirdchance

I'm currently working on a college Hangman project to build a GUI to ply an external hangman game, but I keep recieving a NullPointerException error. Here is the code for the GUI import java.awt.BorderLayout; import java.awt.GridLayout; import java.awt.Color; import java.awt.Image; import java.awt.Graphics; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.awt.Font; import javax.swing.JButton; …

Member Avatar for ladybirdchance
0
177
Member Avatar for fonzi

Hey guys I'm having a bit of touble assigning the toString to a string from an index of an array list, any help would be appreciated. @Override public String indentedToString(int level) { String answer = " "; answer = super.indentedToString(level); answer += "Value " + this.list.toString() + "\n"; for(int i …

Member Avatar for fonzi
0
264
Member Avatar for lena1990

hi all i want to send html file from pc to android phone if any body have an idea of how to do that i will be greatful for help?? thanxs in advance

Member Avatar for peter_budo
0
208
Member Avatar for hwoarang69

it have 3 classes. main class = run every thing player class = create player and create his moves level class = render map and player when i run this code below it render a map and two players. 1st player in redering in main when can move. if user …

Member Avatar for bguild
0
254
Member Avatar for ms061210

Hello guys, I need some advice/opinions. We are task to create a game in socket programming. We can choose from Java, C, c+, shelland php. Which language is the best to create socket programming for beginners. ? We have a litte knowledge with the given languages, but we don't have …

Member Avatar for ms061210
0
186

The End.