- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
:confused:If there [COLOR="Red"]exists a [B]class [I]lock[/I][/B][/COLOR] and [COLOR="Green"]from this class [I]different [B]thread objects[/B] or [U]different [B]objects[/B] & there corresponding [B]threads[/B][/U][/I] are created[/COLOR], may they [B][I]run[/I] simultaneously[/B]?:?: e.g. [ICODE]public class Smiley extends Thread { public void run() { while(true) { try { synchronized(Smiley.class) { System.out.print(":"); sleep(100); System.out.print("-"); sleep(100); System.out.print(")"); sleep(100); } … |
|
Hi all! My problem is the following: I'm using Spring MVC, and trying to use several controllers (one for each jsp). My controllers are defined in the xml like: <bean id="/login.htm" class="controllers.LoginController" /> <bean id="/menu.htm" class="controllers.MenuController" /> inside LoginController's onSubmit I do a ModelAndView("menu", ...). That is OK, the menu … |
|
I've recently taken up an AP Computer Science class online for Maryland State education at my high school, and was wondering if I could receive help on a few of the projects. Most of them are simple like programs I made in Visual Basic for my first programming class with … |
|
Hi all, I have a JTree (JXTreeTable actually, but anyway, it should be similar). I use setShowsRootHandles(true), but the handles are not displayed. Do you know what may cause the problem? My current look and feel settings support these kinds of things. Thanks in advance. |
|
Hi all, I've been struggling with a Swing issue for days now, maybe someone can help me :) I would like to see several icons at the left hand side of a JTree element. Is that possible? I mean i know that I have to create some tricky cell renderer … |
|
i want to print words in reverse. i could print characters in reverse but not words for(int i=arr.length;i>0;i--) printf(arr[i]); |
|
Hi all, I've been searching for some time without any success. Here's the problem: I have an SWT GUI, which contains some UI elements placed onto a Composite. I would like to dynamically add a new Composite to the old one, when a certain event is triggered. Fine everything works … |
|
Hi all, I have two strings, in which the order of words may differ. I would like to hash both of them and obtain the very same hash code for them. So I need a hash that returns the same value for "Hello world" and " world Hello". Does such … |
|
Maybe not the best forum to post this, but anyway; The problem is that I have a DB table that has a composite PK.This composite key is built up from an id, and a foreign key which is another id in another table. I have the mappings for these tables, … |
|
Hi, i need some help. i have an assignment on "Airline Ticket Reservations System". i have to submit it on 10th August, 2008. I tried but can't solve it. please help me. The question is given below : 1. Consider a new airline agency “BEST AIR” that launches recently in … |
|
Hello guys, I don't really need a solution, just answer - some Swing insight. So I have a panel, and a list on it. The list is populated with strings. The problem is the following: If I add the list elements too fast, I end up with different kinds of … |
|
Hello, In my application, as a result of P2P communication, I receive a String object, which is the serialized representation of a Hashtable. Can I somehow recover my original object? I've never done such thing before, and I couldn't find any example which would help. Thanks in advance, Chaster |
|
uhm, i really need help on recursion problems, and the first problem before my assignment is me because i really dont know how to do it, or how to construct it successfully... this is my assignment: a program that will read 10 integers,display them as inputted and in reverse order, … |
|
Yellow, From my application - for some reason - I am able to send messages up to only 64k. I've been wondering if it is possible to split an InputStream into partitions of 64k, and then, on client side to join them again. Is this possible? Have you ever done … |
|
Hello, Can somebody help me out? Well, the problem is the following: I have a JSF page, and the address bar contains a query string, like "...?author=something&title=something". I also have a command button, in its action I want to extract the parameters. So, in the bean I have the following … |
|
Hi, I'v been trying to write a simple Java EE app, which deals with car renting. The entity beans and session beans are ready, so I've created a JSP for representation. It contains a single method, for init: [CODE] <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> … |
|
I need to creat a method something like... when the user inputs test1 test2 haha test3 end and display that should contain exact same one as above except "end": test1 test2 haha test3 so the "end" is the keyword to finish the inputing... [CODE] String s = new String(""); String … |
|
hi,i started to learn java nearly 2 weeks ago so i dont know java clearly,i try to write a program about trainingzone. i must provide an interactive training zonecalculator that prompts a user for age. i write a program but it gives errors and i dont improve this,if anyone can … |
|
Hello, How can I get a reference to a session? I have a page, which forms a query string, and in another page I would like to display the attributes of it. I don't want to introduce scriplets, so I am trying to do this in a pure Java file, … |
|
I wrote this program for simple tax and gross pay calculation... Im not able to execute the progam...Its compiling but the screen frozes while executing.. I know there is some simple mistake in my program... could any1 pls point out the mistake.. [CODE] #include<stdio.h> #include<conio.h> #include<stdlib.h> float tax_cal(float gross_pay); float … |
|
So I need to create a set of data points for the function v*t+.5at(squared). The data points need to be every .02 seconds from 0 to 2.0 seconds. How do I set up the counter for that? Also, all of these points need to be wrote to a location so … |
|
i really need help on this, i need code for this project, please help me, thanks in advance.. (Power Set) Given an input set with entries separated by commas, output all the possible sets that can be generated from this set. Sets are described in the file power.txt The lines … |
|
hey guys, i'm really stuck on this program. It's basically a survey and I have to ask people what drinks they like. 1-4, coffee tea oj and lemonade. i'm having trouble counting the TOTAL NUMBER OF PEOPLE and counting how many people pick coffee tea oj or lemonade. i have … |
|
write a programme which will show you which programming language you used to write this programme |
|
Hi friends,, I am doing engineering and need a JAVA Project on Online Examination.. I dont want a long and complicated project.. But only a project made up of servlets , JDBC... I will be thankful to you as I need it urgently.. Plz help me out... Thank you... You … |
|
what does it mean when you say' reading a java text file?' what does it mean when you say 'writing a java text file?' |
|
Hi, I have some project in which I have to deal with similar text files merging. Is there any java package for this task? If no, does anyone know how CVS (or any other version control tool) deals with such merging operations? I mean based on what? Any personal idea … |
|
I've got some homework to do, but I cannot go through this issue. I want my .aspx page to display my database records, one below another. In order to do this I use a GridView, while the data is stored in an ArrayList. This ArrayList is composed of User objects, … |
|
Hi, I have a little servlet which does the following: [CODE] package Services; import java.io.*; import java.net.*; import javax.servlet.*; import javax.servlet.http.*; import java.util.Random; public class Service extends HttpServlet{ private String getContinent() { Random random = new Random(); int continent = random.nextInt(6); switch (continent) { case 0: return "EUROPE"; case 1: … |
|
Hello. Well, I've been trying to create a a web app, using JSP+JSF technologies. I've completed writing the background classes, and also created a test jsp page: [CODE] <html xmlns="http://www.w3.org/1999/xhtml" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xml:lang="en" lang="en"> <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8"/> <head> <title>Please log in</title> </head> <body> <f:view> <h:form id="loginform"> <h:outputText value="Something"/> <h:commandButton … |