|
|
it's a forum another person had answered for this question. so if u know programming u can explain ,,,, how does this code process... it's Audio steganography using LSB technique by this u wouls have answered.
|
|
|
|
|
nice project lot of work is involved in audio steganography.
|
|
|
|
|
/forums/help-with-project-t586857.html
(Link removed.)
|
|
|
|
|
|
Yes sir, need help in Audio Steganography in java
|
|
|
|
|
HI im tryin to implement dijkstra's algorithm in java but my output is not correct. The output should be [0,492,665,114,452,999] but i keep getting a different range.Can anybody help please as i need this for my assignment. Thnks
public ArrayList <Integer> dijkstra (int start, int end)
{
int N = adj.length;
HashMap <Integer,Double> Q = new HashMap <Integer,Double>();
ArrayList <Integer> [] paths = new ArrayList [N];
for (int i=0;i<N;i++)
{
Q.put(i,Double.POSITIVE_INFINITY);
paths[i]=new ArrayList <Integer>();
paths[i] = new ArrayList<Integer>(start);
}
HashSet <Integer> S= new HashSet();
S.add(start);
Q.put(start,Q.get(start));
while (!Q.isEmpty())
{
int v = findSmallest(Q);
if (v==end && Q.get(v)!= Double.POSITIVE_INFINITY)
return paths[end];
double w = Q.get(v);
S.add(v);
for(int u: neighbours(v))
if (!S.contains(u))
{
double w1= adj[u][v] + w;
if (w1 < Q.get(u))
{
Q.put(u,w1);
paths[u]= addToEnd(v,paths[u]);
}
}
Q.remove(v);
}
return new ArrayList <Integer> ();
}
|
|
|
|
|
Quote: The output should be [0,492,665,114,452,999]
You prevent yourself from getting help because we don't have the input data and we don't have actual result.
When you don't understand what your code is doing or why it does what it does, the answer is debugger.
Use the debugger to see what your code is doing. Just set a breakpoint and see your code performing, the debugger allow you to execute lines 1 by 1 and to inspect variables as it execute, it is an incredible learning tool.
Debugger - Wikipedia, the free encyclopedia[^]
http://docs.oracle.com/javase/7/docs/technotes/tools/windows/jdb.html[^]
https://www.jetbrains.com/idea/help/debugging-your-first-java-application.html[^]
The debugger is here to show you what your code is doing and your task is to compare with what it should do.
There is no magic in the debugger, it don't find bugs, it just help you to. When the code don't do what is expected, you are close to a bug.
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
hello ...i want to give separate hyperlink to resultset data, how can i do that?
|
|
|
|
|
This didn't make any sense when you posted it in QA:
Hello ...i want to give different hyperlink for result-set data, please help me[^]
What makes you think that reposting exactly the same question in the Java forum is going to end any differently?
Go to your QA question, click the green "Improve question" link, and add some proper detail to your question.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
this is source code : https:
|
|
|
|
|
No, we are not a code translation service. You would "learn" more by doing it yourself anyway.
Speed of sound - 1100 ft/sec
Speed of light - 186,000 mi/sec
Speed of stupid - instantaneous.
|
|
|
|
|
Also, you cannot convert C# code to Java code because there is a lot of difference in the standards of C# language and Java. Even if you could find a tool that converts the bytecodes to nearest Java code, there will be a lot of problems.
The problems will be more tough to solve, compared to creating the new application. You can easily create a new application, in NetBeans if you just look at what was done in C# and do the same in Java.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
Hi
In my workplace we have an application that requires us to enter a unique tracking code into a java input field. We normally do this by scanning a barcode on an item until all items are scanned.
We already have a list of the unique tracking codes in excel so rather than scan each barcode when we have 100 or so items we copy from excel, paste into the field press tab to add the item and then copy paste tab repeat until all 100 items are added.
Is there a way to automate the copy cell --> paste id into input box --> Have the script press tab after id is pasted and repeat until all 100 items are added?
Posting this in Java as I am needing to put the data into a java application that is embedded in a web page but maybe I can paste the list into a Windows Form or a C++ application and then have that program perform the copy paste tab function for all items in the list.
Appreciate anyone's help I have no idea where to start.
|
|
|
|
|
Just an idea (which depends on the format of multiple selected cells).
Create a multi line input field where the content of all selected and copied cells can be inserted at once. Create a button that reads the input field content, splits it (depending on the separation characters provided by Excel when putting the data on the clipboard), and adds the items.
Excel puts the data in multiple formats to the clipboard but the form usually uses only the text format with line feed terminated rows and space (or tab?) separated columns. To check this just paste into any text editor.
|
|
|
|
|
Thanks for your answer.
I only have the raw data of Unique IDs so they don't have to be in excel can be in notepad or just pasted anywhere.
The IDs are being input into a Java Applet and must be added one ID at a time. So I need to copy Cell A1, Paste Into Applet & Press Tab and then copy Cell A2, Paste,Tab Repeat until all cells have been added into the applet.
The IDs are in excel but could be in a text file or just pasted into an application that could read all ids line by line input the text into the applet followed by tab key and repeat until there is no more lines to read.
As the applet input field is a text field I don't think any excel formatting of separating values will carry over from excel or a text file to the text field in the applet.
|
|
|
|
|
If the data are separated in some form (as text) and you are able to split them, then your applet should be able to iterate over the splitted data and perform the necessary operation on each item.
There will be some separating when Excel generates text to be put on the clipboard (or saved as text file; the default text file format used by Excel is TAB separation). When the cells did not contain spaces it should be always possible to split.
I understand that this might not be possible (especially when there may be multiple formats). Was just a suggestion.
|
|
|
|
|
Ok all values are free text so I will try and save as a text file, copy the cells and paste into the applet text input box and let you know how it goes
Will it matter if the IDs are in Cell A1, A2 or should they been in A1, B1 all on the same row?
|
|
|
|
|
Member 11097615 wrote: Will it matter if the IDs are in Cell A1, A2 or should they been in A1, B1 all on the same row?
Sorry, but I can't answer that because I did not know in which order they are copied and if the order is important. But if there is no specific relation between the cell position and the content just forget the Excel cell indexes.
|
|
|
|
|
Hi
I tried saving the workbook as Tab Delimited and just copy pasting into the input field in the Java Applet and it just pasted them all as the one string.
Recording a macro of copy alt tab and paste only recorded the keystrokes in excel nothing external.
I think maybe I will need to use auto it or autohotkey or something like that.
|
|
|
|
|
Let the Java applet split the string and perform the required operations on each item.
|
|
|
|
|
Unfortunately I have no control over the applet, I just have to work with it.
There seems to be a lot of examples of VB Excel Macros doing this to automate filling of forms but i'm not sure if the same can be done into an applet.
|
|
|
|
|
If you do not have the applet source then there is nothing you can do to automate this. Recording keystrokes in Excel to create macros does not mean you can then run those macros in other applications.
|
|
|
|
|
char c = 'a'
System.out.println(c++);
The response is also 'a' and I don't understand why.
thank a lot!
|
|
|
|
|
Because 'c' would be incremented after you print it. That's what the postfix operator does.
Speed of sound - 1100 ft/sec
Speed of light - 186,000 mi/sec
Speed of stupid - instantaneous.
|
|
|
|