- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 18
- Posts with Upvotes
- 18
- Upvoting Members
- 15
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
Hey everyone, I have the following list in my code public class order { private float amount; public float getAmount() { return this.amount; } } and in main function I have the following list List<List<Order>> ordersList I want to iterate the list through Streams in java 8 in order to … |
|
Hi all, I'm writing a scavenger hunt app and want to use the Proximity Alert functions. I'm having a hard time to finding any decent tutorials to help me with this. Does anyone have a code snippet on it's use that I can go off of? Much appreciated, Hendo |
|
hi everyone, im new to java. and i was assigned to do a project that integrates java and .net(c#). here's the scenario: 1. the .net system will create a text file (.txt) based on some conditions --> i already did this part. 2. the txt file will then be pass … |
|
|
I am Creating a form with some question about 3 or 4 question.answers are submitted via radio button which has to be inserted in database.I have 2 problems problem 1: in given code i have implemented for one question as we know for inserting the ans in database we have … |
Hi i want to develop new android appliacation with out any programing code it means don't want to write any code for this application,is there any possible to do this one and please tell me what are the web sites i have tpo fallow for done these things. |
|
Hi guys, im doing a project atm and it's really important. It's about building an android application showing forms that link into a database (Mysql), using Xampp. The database then links to a GUI (php?)showing information gathered from the application on the field. Any suggestions on how to go about … |
|
in chat application ,, Two friends x, y (used the same device) x Send to y message then stored in database x make log-out of the application and y log-in application and open chat and received the message here the message stored twice on the local storage and this is … |
|
Hi, I just wanted to know about instance method? If static modifier is not applied before does it makes it an instance method ? Plz give an example Thanku |
|
Hello, I am trying to connect to a hosted database on netbeans(java). So far I have the following: Connection con = null; Properties conProps = new Properties(); conProps.setProperty("user", "user"); conProps.setProperty("password", "password"); try { con = DriverManager.getConnection("jdbc:mysql://host:3306/dbname", conProps); String sql = ("SELECT * from products"); st = (com.mysql.jdbc.PreparedStatement) con.prepareStatement(sql); st.executeQuery(); rs … |
|
I actually want to ask that I have to make fyp management system`s website and its windows mobile application but I dont know from where to start .Can somebody guide from where I should start and how to start it? |
|
I am new to android programming. I tried to execute a app from one of the tutorials and it is showing runtime error. If it runs highscores menu. Application closed. Below are the error messages from logcat and the activity file. Appreciate your help. Thanks in advance. ERROR 12-15 03:49:51.124: … |
|
I have a 2d array and I want to check if its in increasing order. here is a example of 2d array increasing order: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, here … |
|
This project deals with EOF-based loops, using the while construct where we do not know the exact number of times a loop will iterate (perform the associated block of code). We will continue to build on our knowledge of if/else constructs. Use the variables given below to solve the problem. … |
|
product between 2 arrays of 2 dimensions and be the score is stored in another array using ecplise and gridsim for exemple: mat3[i][j]= mat1[i][j]* mat2[i][j] |
|
I can't figure out the code for, 1) Get an error message dialog when there's no input in the textfield. 2) Get an error message when you put alphabets or other characters except for numbers. |
|
I need to create stateful web pages consisting of various forms to be filled up by the user. I want to make UI tools look something like that DOJO framework provides. My problem is what tool is better suited for this type of website?? DOJO+JSP ? (but i'm confused about … |
|
Row 1[ item1, item2, item 3, item 4, item 5, item 6, item 7, item 8] Row 2[ item1, item2, item 3, item 4, item 5, item 6, item 7, item 8] Row 3[ item1, item2, item 3, item 4, item 5, item 6, item 7, item 8] Row 4[ … |
|
Is there a way to calculate large numbers without using BigInteger? I am calculating an exponent without using the math class. |
|
Scanner input = new Scanner(System.in); String secretWord ; String guess, dash = "-", upWord; int numGuesses = 0; int numWord; final String SENTINEL = "!"; System.out.println("Player 2, please look away. Player 1, please enter the secter word: \n"); secretWord = input.next().toUpperCase().trim(); numWord = secretWord.length(); for(int dashNum = 1; dashNum < … |
|
Hi guys, I have some what of a quick/dumb question. How would one traverse a binary search tree using a loop instead of recursion (An algorithm would be vwry useful if possible)? I appreciate any help . Thanks |
|
Hello daniweb experts, I would like to ask some help or some idea on how can i send data via post to my webpages if there is session....the webpage(http://mysite.com/adduser.php) is checking if the login user is already have session. I want my android apps can send data to the adduser.php,but … |
|
I'm trying to update an input value using jquery and I can't get it to do anything. I've tried .val(), .attr, .html, .text. $('#acctnum').click(function(){ var index = this.selectedIndex; var bal1 = $('#bal1').val(); var bal2 = $('#bal2').val(); var bal3 = $('#bal3').val(); var bal4 = $('#bal4').val(); if (index == 0){ $('#poamnt').val(bal1); alert … |
|
How to rollback the transaction while spring controller has runtime exception... i found some snippet from google i.e, @Transactional(rollBackFor = Exception.class) I think this only applicable for service class has the exception. I need to rollback controller class has any exception. forexample @controller public class test1 { public void testing() … |
|
could anyone tell me how to dynamically select an item in a listview?? i tried `listview.setSelection(1);` and `listview.performItemClick(listview,3,listview.getItemIdAtPosition(3));` both of them don't work..please help me. |
|
there is a simple code but i want when i click submit then ther should open google.com(like any web) in another tab and in the same page there should be one another page. How can i do this.. a sample code is.. <%@ page import = "java.sql.*" %> <% String … |
|
Hello guys this may be easy question but I m finding it quite tricky. Scenario is I m printing all the values from the database table using jstl foreach. <c:forEach items="${pal}" var="p"> <tr> <td><c:out value="${p.pid}"></c:out></td> <td><c:out value="${p.pname}"></c:out></td> <td><c:out value="${p.pdesc}"></c:out></td> <td><c:out value="${p.pestd}"></c:out></td> <td><a id="popa" href="#">Allocate</a></td> </tr> </c:forEach> And now onclick Allocate … |
|
I have Android app and 1 php application. I want to invoke android function when the button is clicked on my php application (on latop-pc browser). So basically Php to android communication. How to achieve that? |
|
I am working on a Google Map api3, I am adding points on the map and save it to my database this part is working fine now in the end of adding the map and click on save and close I need to redirect to another page which will tell … |
|
could anyone please tell me what's the difference between getApplicationContext() and MyActivity.this.."MyActivity" being a class that extends Activity class..somethimes getApplicationContext() doesn't work and I need to use MyActivity.this when the constructur asks for a context... for example, if i use `ProgressDialog p=new ProgressDialog(getApplicationContext());` it gives an error however, if i … |
|
I'm packaging my java program as a jar..it includes mysql-connector.jar..it runs fine when i run it in eclipse..now i need to distriute the jar file..I packaged the jar file and when I run it through command line using java -jar myprogram.jar, it throws ClassNotFoundException: com.mysql.jdbc.Driver could anyone please tell me … |