32,199 Topics
| |
Hi there, I know a fair amount about programming in both C++ and Java, but I still have much to learn. I am working on a mobile application idea for Android (so it's in Java) that uses a three-dimensional room as its main component. My very general question is, what … | |
I do not know if I am on the right track or not, but I have hit a dead end. I have read and reread my books chapters about super classes and inheritance and am still completely lost. in this assignment I have to: **Write a super class encapsulating a … | |
Hello, What is the best way to count the number of swaps required to sort an array that is sorted using the Quicksort algorithm? I put a counter in what I believe is in the correct position and the tests that I have run seem to be correct however Quicksort … | |
I have a homework task where I need to determine which sorting algorithms are implemented in a .jar file provided by my teacher. Obviously I need to design my own tests to do this, so I was doing a bit of research on best/worst case scenarios but what I found … | |
Hi All, I'm new in android app development and before you present a proposal to the client is it important that you must create a mock up of the design of your app first? If so what are the proper way of creating a mock up design for an android … | |
I have to: **write a class encapsulating a sports game, which inherits from Game. Where the game has the following additional attributes: whether the game is a team or individual game, and whether the game can end in a tie. ** I am not familiar with inheritance and am wondering … | |
I'm trying to make a small app with the following look ![2d3a438a99c57975b0cd40c49d67c502](/attachments/large/3/2d3a438a99c57975b0cd40c49d67c502.jpg "2d3a438a99c57975b0cd40c49d67c502") Thats an edited image of what exactly im trying to achieve. But here's what I got... ![b7f011c0afa0031328e917e8553abc2d](/attachments/large/3/b7f011c0afa0031328e917e8553abc2d.png "b7f011c0afa0031328e917e8553abc2d") Could you tell me where I went wrong. And if it isn't much effort could you advise on how … | |
Hey, I have an assignment to :write a program that reads a file and writes a copy of the file to another file with line numbers inserted. I am not sure what to do at the end of the code at the "for(int i =0; i < lines.length; i++)" part. … | |
I am trying extract 5 numbers from a loop that generates 78 numbers randomly. How would i do that? for(i=0; i<=78; i++) { //i am not sure how to extract the numbers from here randomly } //I am also wondering how to take it's average, or am i doing it … | |
How can i capture and transmitt and recieve audio and video using jmf ? Is is possible to provide gui to clients on applet and make authentication mechanism and database connection aur user credential through java servlet? How can i provide feature of adding friends and showing online status of … | |
Hi I have to develope video chatting application for my major project. I have 45 days in hand. How can i use applet in dynamic web project of java servelt for displaying video ? How can i make applet to be used on client's browser. what is the way to … | |
Hi. In a video chatting application , how can i provide user with the feature of adding friends and showing the list of online friends. Also how can i capture audio and video and transmitt(sender client 1) and recieve (reciever client 2) using jmf and rtp . I have studied … | |
hi!guys can any one tell me how i make installer through java.. i have source code only i want to make it the installer that easily install to the other computers and other used this.......... | |
Hi..Stress is a common thing in every programmer's life. So here is a way you can reduce your stress.. Write System.exit(0); in your code whenever you are in stress..:) Comment your own tips too to avoid stress | |
** //When an item from the list is selected, a checkbox along with the drawn graphics schould appear. but only the graphics appear. Help? *basic** import java.awt.*; import java.applet.*; import java.awt.event.*; import java.awt.Checkbox; public class GetSelectedItemExample extends Applet implements ItemListener { Choice c; CheckboxGroup g1 = new CheckboxGroup(); Checkbox checkBox1 … | |
Hello, I have been having quite a bit of trouble with this one. Can someone please tell me how many swaps it would require to sort the following array? {2, 4, 6, 3, 7, 1} I tried putting my counter in a couple of places and neither one of them … | |
Hey guys im populating a combo box from my database i was just wondering how do i prevent the combo box from displaying different instances of the same value. e.g three B&Bs all from ennis. ennis is in the combobox but its displayed three times. how do i stop this … | |
Hi Guys I was just wondering how you stop the combo box from displaying different instances of the same value. In the combo box i have villages and towns names e.g doolin. onli thing is i have many businesses from doolin on the database so when i pull the town … | |
trying to make a table tennis game. simple one with two paddles and one ball. so i have two paddel which is a long rectenger. and a ball. ball i have set x+=dx y+=dy this code above will let the ball keep on going right and down. if ball hit … | |
Here's the image [link](http://postimage.org/image/kee0ndxdv/)! Will this be possible ?? If so let me know how to do it guys. I dont know how to send the response to the browser directly help me guys.. Thanks, HOSTGUY | |
Hey I'm trying to add pairs of numbers into an array by placing them into objects then putting the objects into the arrays but I seem to be having a problem with some part of my code. When I run the following example I just get the following back : … | |
All, I wonder if anyone has an opinion on this. What's better, this: // Diagonal checks if (board[0][0] == turn) { if (board[1][1] == turn) { if (board[2][2] == turn) { System.out.println(); System.out.println(turn + " IS THE WINNER!!!"); writeBoard(); return true; } } } Or this: // Diagonal checks if … | |
public class Numberpyramid { public static void main(String[] args) { int x = 9; for (int i =1; i<=x; i++){ for (int j =1; j<=x-i; j++) { System.out.print(" "); } for (int k=i; k>=1; k--) { System.out.print((k>=10)?+k:" "+k); } for(int k=2; k<=i; k++) { System.out.print((k>=10)?+k:" "+k); } System.out.println(" "); } … | |
Help, I'm trying to get which object has the greater area of the 3 triangles. Also want to print out the info for each triangle object by calling toString(). If any one would check my work I have done if for any change I need it. Thank you. // testerTriangle … | |
I am trying to call two methods from another class which is linked to the current class i am working in. basically if it is a left-button click from the mouse, i want to call the addCounter method (of the myAbacus object). If it is a right button click, i … | |
i am new in Java. i would like to know how to find the nth root of any positive number using recursion. Is there any way i can do this without using math.pow()? | |
I am trying to use a simple println(...) statement to display the value of a variable from a separate class. The two separate classes are linked. AbacusModel class has an array 'peg_array' which stores the number of counters present in each of the elements of the array. AbacusModel has a … | |
i have problem when i am accessing package of different directory. can we access a package in a single java file that are lies in two different drive/directories? Eg. My one package p1 is in d:/ having class abc.java My another package p2 is in e:/ having class pqr.java can … | |
how to install jdbc driver for mysql java connector | |
I have two question in my mind. can we create java file having two classes and both have main methods? is it possible or not? why? if possible then we have to save it with which class name? and one more question is: `BufferedReader br = new InputStreamReader(new FileInputStream(new File("abc.txt")));` … |
The End.