32,204 Topics
| |
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 … | |
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? … | |
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 ? | |
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)) … | |
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 … | |
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 … | |
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 … | |
why cant i donwload eclipse?? ive been repeating and repeating on the download of eclipse... but cant seem to work.. | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 | |
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 … | |
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!!! | |
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 … | |
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 … | |
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(); … | |
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 … | |
>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 … | |
| |
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 … | |
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 … | |
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 … | |
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; … | |
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 … | |
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 | |
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 … | |
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 … |
The End.