32,204 Topics
| |
just like my title says my loop won't work [CODE]import java.util.Scanner; public class TestSocialEvent { static String title, attire, dayweek,input,time; static int day,month,year; public static void main(String[] args) { Scanner k = new Scanner(System.in); System.out.println("Social Planner"); SocialEventController sec = new SocialEventController(); while(true){ SocialEvent ev = new SocialEvent(attire, dayweek, title, day, … | |
Hello, i need to list all menu items on page load, now it's on mouseover anyone can help? [ICODE] <a href="home.php?cat={$catid}" class="arrow" onmouseover="javascript: return switchSubcatLayer(this);"></a>[/ICODE] | |
hi i write code that is mesure the area of traingle with two constructor ... with argument and default constructor and set ,, get , high and length ,, and tostring , equals methods but i think is there a logical error class file [CODE] public class Traingle { private … | |
hello daniweb.. :) I am learning JAVA and currently new to it, I am studying "The Complete Reference-JAVA" by Herbert Schildt. In that book its written that using short or byte will save space, but there is no guarentee that Java won't promote those types into int internal anyway. Remember … | |
Ok so i have this 3D cube (not made in java 3d) and i want to move it around and rotate it with keys on the keyboard. I know how to start it off and stuff i just can figure out how to make it work lol well here the … | |
basically, instead of the "(N1 + N2 + N3)" which is in the average method we need to call the sum method to the average method as the sum method returns a value = (N1 + N2 + N3). does anyone know how to call the sum method to the … | |
| Hi, I'm trying to have a set of random numbers into ArrayList and to print it. e.g. if the total number is 10, [2,3,5] or [1,5,2,2], etc. In below, it gives me each numbers but because y gets zero, it throws an exception. Can I have help to print all … |
Hey guys. I have been trying to write a progamme, and for some reason it doesn't give me the result I want. Anyway, here is a description of the programme I want: "Suppose that a is a positive integer. Suppose we repeatedly modify a as follows: if a is even, … | |
| I'm working on a random number guessing game with 5 tries that uses standard JOptionPane GUI and 3 methods, the requirements have each method doing a specific task. The main method starts a game is supposed to handle the 'you won' or 'you lost' dialogue and play again if the … |
Hi all... What is the purpose of built in class Say for example in event handling event class are : ActionEvent,MouseEvent,ComponentEvent,ContainerEvent... like that what is the purpose of this classes and in which case we are using this kind of the classes. Thanks...:) | |
Hey guys, i need to write a small program to read the contents of a file, and do a "rot13" encode on the contents in java this is the link for image of rot13: [url]http://www.websters-dictionary-online.org/images/wiki/wikipedia/commons/thumb/3/33/ROT13_table_with_example.svg/320px-ROT13_table_with_example.svg.png[/url] i have no idea where to start and i need to complete this application before … | |
Write a while loop that will generate and print 100 random integers on the range [1,1000)? I cant get mine right, plz help. Also, i dont have JAVA so couldnt really check And also, if you can: Write a while loop that adds up all the odd numbers between 0 … | |
I am fairly new to the Java lang and this is my first post so if I do it incorrectly please forgive me. Anyways, I am basically trying to find [LIST] [*]MaxInDegree [*]MaxOutDegree [*]MaxDegree [*]MinInDegree [*]MinOutDegree [*]MinDegree [/LIST] of a 2d array with various nodes. Here is what I have … | |
write a class Circle with one double data radius . write motheds ::: public Circle(),public Circle (double),public Circle (Circle c) public double getRadius() public setRadius (double) public getPerometer(int)where the parameter indicates the number of terms for Ï€ public getArea (int) where the parameter indicates the number of term for Ï€ … | |
can anyone tell me how can we hide [B]invisible data's [/B]permanently within bmp images | |
I have a JFreeChart XYPlot with many series, the number of different series depends on input parameters. I wish to colour the lines in groups of two, so that series_0 and series_1 are the same colour then series_2 and series_3 are the same colour. I tried the following solution but … | |
Need correction on my answers and description on my errors. Q1 Which of the following statement(s) is true about an abstract class? 1. An abstract class cannot have any constructors. 2. An abstract class contains only abstract methods 3. An abstract class always implements an interface [B][U]4. An abstract class … | |
as the question require to declare [CODE] // Creating Class Members public class Films { private String itemCode; private String title; private String description; private String language; private String runningTime; private String productionCompany; private String status; //eg, pending, premiering, running, written-off // No-argument Constructor: Without Parameters public Films() { itemCode … | |
Could someone explain how the flow of control works with a nested for loop? [CODE]for (initialize; condition; increment) for (initialize; condition; increment) statement; [/CODE] I know a single for loop is: initialize --> condition --> statement --> increment--> condition -->....... | |
Hi, i've been looking around the web but could not find anything about the filestructure of the following file: [CODE]{"tickets":[{"name":"Test", "id":"906935000", "description":"gültig", "userID":"310000", "price":"Preis: 1,90€", "productID":"119", "checksum":"6017", "dailyCode":"u", "hourlyCode":"y", "barcode":"", "rebuyLink":"191000", "buydate":"52744", "buydateString":"17.08.2011", "legalNote":".", "validString":"gültig bis 17.08.2011", "demo":true, "validDescription":"gültig in 210"}], "currentMonthExpenses":"1,90€", "getMoreTicketsAvailable":false, "monthlyTurnover":170};[/CODE] This .dat-File is generated in javacode. … | |
We have a mobile game application created using j2me. This application need to communicate with an asp.net wcf service to send/receive data in json format. I have created the service and uploaded on to server. The url is somewhat [url]http://xyz.com/TheService.svc[/url]. This service provides some methods for example - int add(int … | |
can anyone please tell me how to edit the summary of a file(e.g *.txt,*.docs,*.pdf,*.avi.....etc) through by java programming. | |
I am doing Gui's on Netbeans and am writing a program that sells flower ornaments and such. I have everything added to an arraylist. But when it comes to showing, I am on another tab and need to pass the arraylist to that method for display, any help? Link me … | |
Hello. I'm having some trouble understanding linked lists. I've been working on trying to figure this out all week, reading through the text, looking at examples and I still can't figure it out. This is due for me by midnight tonight, so I'm reaching out as a last ditch effort … | |
so,i found a voice chat code that i tried to run it,but all i got was a list of "Reciever.java": Error #: 200 : <identifier> expected at line *, column *" this is the code ************************************************************************ Receiver.java ************************************************************************ [CODE] import javax.sound.sampled.*; import java.io.*; import java.net.*; import java.util.*; public class Receiver … | |
I made a basic JUnit test to set up this oracle database on my computer with hibernate. The database works and everything, but trying to hook it up to Hibernate is proving to be a challenge. My config file is below: [code] <hibernate-configuration> <session-factory> <!-- Database Connection Properties --> <property … | |
Hello, I have this little piece of code [CODE]System.out.println("Write a sentence: "); String sentence = tastatur.next(); String[] temp; String divider = " "; temp = sentence.split(divider);[/CODE] The problem is that when I enter a sentence only the first word gets stored in the string. For instance if I enter "dum … | |
Hi guys, So for my next assignment I am required to, at some point, create a function that searches through an array of objects and sets a boolean value in a corresponding boolean array at the same position as the object in the object array, if that makes any sense. … | |
Hello. I was trying a new apache derby SQL prepardstatement to send numbers incremented form one into three tables. if it find the number in any of the tables than it is not the number I need to create the next primary key in my payment table. I am not … | |
Is their any useful algorithm for drawing deterministic finite automata? I can prove that a dfa is accepted or not by my code but i do not have any knowledge about how to draw it in java. |
The End.