Hi,
Finally I have time to do some projects for fun. I want to write some app for my new Livescripe Puls smart pen.
Does anybody out of here already wrote something like this? Do You have anny tips for beginner or useful links?
I found only http://penlets.com/
...
Java: How do I perform list operations with different definitions of equals?
I have two lists of generic POJOs. I need to perform some set operations on the lists based on different ways of comparing the POJOs within the lists.
For example, if my POJO had the following structure:
public class GenericPojo {
private String id;
p...
I have a Java class library (3rd party, proprietary) and I want my python script to call its functions. I already have java code that uses this library. What is the best way to achieve this?
...
Hi,
I want to write app where user can point any place on map (not only cities) and get timezone in that place.
What data structure (app will not have Internet connectivity) and algorithm should I use? Where I can obtain needed data (I wont more accuracy then divining map into 24 rectangles)?
I will write my app in Java ME.
...
home.jsp
<jsp:useBean id="username" class="java.lang.String" scope="application"/>
<%
username="Jitendra";
%>
<jsp:include page="include.jsp"/>
include.jsp
<%=username%>
This gives an error saying “username” is undefined in include.jsp, even though the scope of Bean is application…
...
Howdy, I do know how to implement a simple bubble-sort for 1dimensional array. But with 2dimensional or multidimensional, that's where I have my problems.
So far I've been using this to sort 1Dimensional Arrays, works like a charm. But mostly with integer numbers, not strings:
boolean sort;
do{
sort = true;
for (int i = 0; i < test...
Hi, I am refactoring some code for an assignment - currently the view has lots of buttons and menus and one action listener which decides what to do by using event.getSource(). From what I've read people seem to think its better for each GUI component to have its own action listener, perhaps created through some kind of factory. However ...
Hi i've got a String like "DE32424;WV424324;FR234324;DE45345"
How would I ignore everything after the first ; so only DE32424 would be left in the string after using .replaceAll() in JAVA.
...
I'm trying to read some numbers (double) from a file and store them in an ArrayList and an array (yes, I need both) with the code below:
try {
Scanner scan = new Scanner(file).useDelimiter("\\s*\\n");
while(scan.hasNextDouble())
{
tmp.add(scan.nextDouble());
}
Double[][] tmp2 = new Double[tmp.size()/2][2];
int tmp3 = 0;
for(i...
One and only one of my hundreds of users has trouble starting my Java desktop app. It only starts for him about one-third of the time. The other two-thirds of the time a NullPointerException is thrown at startup:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:394)
...
Is there a way to detect if a link like the following examples has signal with a Java method ?
If you cut and paste them into your browser's url field, you'll see the first one has signal but the 2nd has none, so if I have a Java method like this, how to detect the signals ?
boolean hasSignal(String Link) // Link = "mms://online.ntdtvc...
In Java - I need to search/validate an input string for a number or for a specific string. it must be one of them.
For example - If I have this input lines:
cccccccc 123 vvvvvvvvv jhdakfksah
cccccccc ABC vvvvvvnhj yroijpotpo
cccdcdcd 234 vcbvbvbvbv lkjd dfdggf
ccccbvff ABC jflkjlkjlj fgdgfg
I need to find 123, ABC, 234, ABC
to look ...
I'm getting a string array from command line and displaying it to user as integer array. What could be the mistake here?
import java.lang.String;
public class arrayConvert {
String strArray[];
public int[] StrArrtoIntArr(String strArray[])
{
int intArray[] = new int[strArray.length];
for(int count=0;c...
Hi.
I'm working with Hudson plugins. Jelly views are the most complicated thing for me.
So the question is how to use JavaScript code in Jelly scripts?
P.S. "Hello World" script is working good but simple "for" loop brings a lot of problems...
...
I program windows applications using Java and this builds a ".jar" file not an ".exe" file. When a client computer with no java runtime installed opens the ".jar" file, it runs as an archive with winrar. All I want to know is how to detect whether java runtime is installed or not on a computer using c# code in order to show a MessageBox ...
Hi,
I am trying to write a scrabble anagram generator.
So far my code sort of works, but it's horribly slow, and has bugs. One being it will use letters more than once. For example: Letters inputted: "ABCDEFG". And it will generate AB, but also AA, which isn't right.
Please help.
public class Scrabble1
{
private String[] dictiona...
I'm trying to implement a BTree. I'm pretty much done with the tree and works great for a smaller input which means I've implemented the tree in memory. Now I would like to play with large input for which I've to write the tree to a file. I don't know where to get started. I'm using Java and I haven't done too much of 'disk write' coding...
I have an assignment to use JavaBeans to create an online Banking application. I am trying to make the signup form but I am having some issues. When the form submits I am not able to get the values.
The Form:
<jsp:include page="header.html"></jsp:include>
<h3>Create An Account</h3>
<form action="process_new_user_account.jsp" metho...
After this was answered I continued to work my way through the code.
It work's perfect this way:
static String[][] bubbleSort(String customerdata[][], int sortafter, int asc)
{
String temp [];
boolean sort;
do{
sortiert = true;
for (int i = 0 ; i < customerdata.length - 1; i++){
if(customerdata[i][sortafter].compa...
I'm implementing Kruskal's algorithm and I'd like to utilize threads. However I am not sure I know enough about the algorithm to do this.
What I imagine is that I'd different parts of the graph would be solved for and connected at the end. Can anyone point me in the right direction? Thanks.
...