|
No idea. You really need to spend some time thinking about what problem you are trying to solve, and learning how to express your question in clear technical terms.
Use the best guess
|
|
|
|
|
Hey,
how can I parse a odata atom feed?
Notice: The xml data are already on my system. So I need a libary that takes a string or local file path.
Example:
<?xml version="1.0" encoding="utf-8"?><feed xml:base="http://10.0.2.2/dataservice/data.svc/" xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><id>http://10.0.2.2/dataservice/data.svc/Areas/</id><title type="text">Areas</title><updated>2013-03-28T14:45:13Z</updated><link rel="self" title="Areas" href="Areas" /><entry><id>http://10.0.2.2/dataservice/data.svc/Areas('filestore')</id><category term="Dms.Data.Services.Context.Entities.DmsArchiveArea" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /><link rel="edit" title="DmsArchiveArea" href="Areas('filestore')" /><title /><updated>2013-03-28T14:45:13Z</updated><author><name /></author><content type="application/xml"><m:properties><d:Id>filestore</d:Id><d:Name>filestore</d:Name><d:Reche m:type="Edm.Boolean">true</d:Reche><d:Scann m:type="Edm.Boolean">true</d:Scann><d:Indiz m:type="Edm.Boolean">true</d:Indiz><d:Datei m:type="Edm.Boolean">true</d:Datei><d:Revis m:type="Edm.Boolean">true</d:Revis><d:Speich m:type="Edm.Boolean">true</d:Speich><d:Druck m:type="Edm.Boolean">true</d:Druck><d:Mail m:type="Edm.Boolean">true</d:Mail><d:Archiv m:type="Edm.Boolean">true</d:Archiv><d:Attrae m:type="Edm.Boolean">true</d:Attrae><d:Annoarch m:type="Edm.Boolean">true</d:Annoarch><d:Annorech m:type="Edm.Boolean">true</d:Annorech><d:Annorevi m:type="Edm.Boolean">true</d:Annorevi><d:ReviView m:type="Edm.Boolean">true</d:ReviView><d:ReviAend m:type="Edm.Boolean">true</d:ReviAend><d:WeichAttribAend m:type="Edm.Boolean">true</d:WeichAttribAend><d:IntervallEinstellBar m:type="Edm.Boolean">true</d:IntervallEinstellBar><d:SeitenKopieren m:type="Edm.Boolean">true</d:SeitenKopieren><d:SeitenAend m:type="Edm.Boolean">true</d:SeitenAend><d:DokLoeschen m:type="Edm.Boolean">true</d:DokLoeschen></m:properties></content></entry
Thank you =)
|
|
|
|
|
you can try jibx.
Regards
Shubhashish
|
|
|
|
|
Hello,
Please have a look at this documentation [^]. This[^] document is also useful.
Regards,
Prasad P. Khandekar
Knowledge exists, man only discovers it.
|
|
|
|
|
Hi dears
I want install bundle on apache felix framework in OSGI so first start felix and then show g! message on cmd
now when I want install bundle write this command : Install file : C:\Users\Farshad\Desktop\myJar.jar
but throws exception !! that Exception message is :
java.net.MalformedURLException: no protocol: file
java.net.MalformedURLException: no protocol: :
java.net.MalformedURLException: Unknown protocol: c
How I can do this? I use Windows 7 (64 bit) os.
thanks a lot.
|
|
|
|
|
Hello,
The correct command is
felix:install file:/path/to/bundle/bundle.jar . See this Getting Started guide.
Regards,
Prasad P. Khandekar
Knowledge exists, man only discovers it.
|
|
|
|
|
what the whole code of "Soduko" ? please answer this question
|
|
|
|
|
Rhod-Ann wrote: what the whole code of "Soduko" ?
And what is your question? Do you want to know how you can solve a sudoku in your local newspaper? - This would be the wrong forum for this.
If you want to make a Sudoku in Java, use this one[^].
Google. It really solves problems.
|
|
|
|
|
public class Solution {
public static void main(String[] args) {
Solution s = new Solution();
char[][] board = {{'.', '2', '6', '5', '.', '.', '.', '9', '.'},
{'5', '.', '.', '.', '7', '9', '.', '.', '4'},
{'3', '.', '.', '.', '1', '.', '.', '.', '.'},
{'6', '.', '.', '.', '.', '.', '8', '.', '7'},
{'.', '7', '5', '.', '2', '.', '.', '1', '.'},
{'.', '1', '.', '.', '.', '.', '4', '.', '.'},
{'.', '.', '.', '3', '.', '8', '9', '.', '2'},
{'7', '.', '.', '.', '6', '.', '.', '4', '.'},
{'.', '3', '.', '2', '.', '.', '1', '.', '.'}};
s.solver(board);
}
public boolean solver(char[][] board) {
for (int r = 0; r < board.length; r++) {
for (int c = 0; c < board[0].length; c++) {
if (board[r][c] == '.') {
for (int k = 1; k <= 9; k++) {
board[r][c] = (char) ('0' + k);
if (isValid(board, r, c) && solver(board)) {
return true;
} else {
board[r][c] = '.';
}
}
return false;
}
}
}
return true;
}
public boolean isValid(char[][] board, int r, int c) {
//check row
boolean[] row = new boolean[9];
for (int i = 0; i < 9; i++) {
if (board[r][i] >= '1' && board[r][i] <= '9') {
if (row[board[r][i] - '1'] == false) {
row[board[r][i] - '1'] = true;
} else {
return false;
}
}
}
//check column
boolean[] col = new boolean[9];
for (int i = 0; i < 9; i++) {
if (board[i][c] >= '1' && board[i][c] <= '9') {
if (col[board[i][c] - '1'] == false) {
col[board[i][c] - '1'] = true;
} else {
return false;
}
}
}
//check the 3*3 grid
boolean[] grid = new boolean[9];
for (int i = (r / 3) * 3; i < (r / 3) * 3 + 3; i++) {
for (int j = (c / 3) * 3; j < (c / 3) * 3 + 3; j++) {
if (board[i][j] >= '1' && board[i][j] <= '9') {
if (grid[board[i][j] - '1'] == false) {
grid[board[i][j] - '1'] = true;
} else {
return false;
}
}
}
}
return true;
}
}
Hi,
I think this may help to find out the solution for the problem..Plz try this and share your experience.
|
|
|
|
|
I want to create a presentation controller using openoffice impress.
I create the application that opens openoffice impress and I'm having a problem
that I want to open this .odp file in a panel in my form.
But it always opens in a new window.
How can I set parent to this impress file and can open this in my panel?
Thanks!
|
|
|
|
|
Start here[^].
Use the best guess
|
|
|
|
|
Well I have studied all these and finally succeeded to open impress document.
But the problem is quite different.
There is no control in the form or GUI.
Impress document opens in a new window or its own container.
Do you have any idea?
|
|
|
|
|
Thomas Grapel wrote: That's amazing. Not really, since it explains what your options are.
Thomas Grapel wrote: Any other Idea? No, but that site is the obvious place for help on this topic.
Use the best guess
|
|
|
|
|
Yeah thanks for your help.
I'll be connected to this forum...
|
|
|
|
|
i am using slick package
i already made my map with tiled map and now i want to use it in my project so ,
i wrote these statemnts :
map = new TiledMap("data/1.tmx");
map.render(0, 0);
but when i run it i got just the layer background
how i can display my tiles and my other layers
(i have three layeres object ,collision ,and background )
|
|
|
|
|
my project is super mario game with java
i am using package slick
i really really need help from export
please can anyone help me
|
|
|
|
|
Look, we are all volunteers and not the "We give code if we get asked for it" - section. Explain your problem, what you have tried so far and submit the code you have written until now and what the error message is or what is going wrong at all.
Then there are a lot of guy in here which are happy and pleased to help you. But no begging for code, please.
|
|
|
|
|
i was not asking for code .. believe me i am A+ student i need someone to debugg my errrores and teaches me ..becauese all the tutorials in youtube are incomplete also this is the first time i make a game and i didn't take it in my courses .. so i have to teach my self but unfortunately there is a lack of sources
|
|
|
|
|
java_beginer wrote: there is a lack of sources Did you try this[^], or this[^]?
Use the best guess
|
|
|
|
|
i was not asking for code.. so, send your code and then i will be happy to help you
|
|
|
|
|
You should be able to utilize OpenGL library for this project. No need to tell the volunteers you are A++ student to get help. What is good about being an A++ if you cannot write the code for your final year project.
|
|
|
|