32,199 Topics

Member Avatar for
Member Avatar for nabia1

I want to use geoFence by kitLocate in android but i am facing unkonwn errors, my MainActivity.java package com.nabia.geofence; import com.kl.kitlocate.class_interface.KLGeofence; import com.kl.kitlocate.interfaces.KLApplication; import com.kl.kitlocate.interfaces.KLLocation; import com.kl.kitlocate.interfaces.KitLocate; import android.app.Activity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import nabia.kigeofence.R; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …

Member Avatar for JamesCherrill
0
325
Member Avatar for karthick_3

Hi, i would like to know what are the technologies used as user interface in spring MVC. example like JSP,Thymeleaf. Please let me know if anything else if used apart from this.

Member Avatar for jwenting
0
107
Member Avatar for scheppy

Hi everyone. Ive finally figured out how to get my JOptionPane always on top no matter what but i cant figure out how to get the results of what button the user has clicked? and how to disable the x on the top left corner? This is what I have. …

Member Avatar for JamesCherrill
0
268
Member Avatar for Cory_1

I am trying to work on a code for extra credit in my Programming class. The question asks for the user to input a text file, and display all the words in that file(including duplicates) in ascending order. After writing the code several different times over the course of four …

Member Avatar for JamesCherrill
0
2K
Member Avatar for AbstractEden

Hello, I was hoping to get some input from anyone in the Java section. My professor gave us a practice problem about two weeks ago and I have been running into an out of bounds error. The program seemed simple enough, take in two arrays of binary numbers from a …

Member Avatar for AbstractEden
0
277
Member Avatar for sciprog22

Hello, I have a question about ascending order sorting using the Comparabe interface: When I add the keys of my Hash Map to a TreeSet object and implement the compareTo as below, I get descending order of sorting of names: public int compareTo (Accounts a) { return a.name.compareTo(this.name); } // …

Member Avatar for sciprog22
0
163
Member Avatar for hari_10
Member Avatar for Swathi_3

Project Decription: The user gives from and to destination from which he needs to get all the trains availabe at that route in all timings. I dont know where im wrong. Pls help me

Member Avatar for jwenting
0
181
Member Avatar for Cory_1

I am attempting to use generics that will sort an ArrayList in ascending order as extra practice for my upcoming mid-term exam. I am given the main method body, and the method header for the sorting method, and am asked to write the method body for the sort method. However, …

Member Avatar for JamesCherrill
0
4K
Member Avatar for anisha.silva

Hi, i have a string that i want to match to a regular expression. The string is methodName(paraT1 para1, paraT2.name2 para2, paraT3.name3 para3) Inside the () there can be multiple of "aaa.bbb ccc" and "ddd eee" patterns The regular expression i wrote was : (\w*)(\s*)\((((\w*\.\w*)\s*(\w*))|((\w*)\s*(\w*)))(\s*\,\s*(((\w*\.\w*)\s*(\w*))|((\w*)\s*(\w*))))*\) and the I get the …

Member Avatar for srider1969
0
306
Member Avatar for daisyy

Here I have this error java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES) if I execute this thing GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'root' WITH GRANT OPTION; then I have this error. ERROR 1045 (28000): Access denied for user ''@'localhost' (using password: NO)

Member Avatar for Taywin
0
2K
Member Avatar for deibaby03

so i have 2 tables here CREATE TABLE tblAcctPrd ( strAPCode VARCHAR(50) NOT NULL, datAPStartDate DATE NOT NULL, datAPEndDate DATE NOT NULL, PRIMARY KEY (strAPCode) )Engine=InnoDB; which is the parent table and CREATE TABLE tblEntry ( <----the child table strEntCode VARCHAR(50) NOT NULL, datEntDate DATE NOT NULL, strEntType VARCHAR(50) NOT …

Member Avatar for Taywin
0
245
Member Avatar for Donald_5

I have 1 table in database TableRoom - NoRoom - Status and i have noroom 101, 102, 103, 104, 105, 201, 202, 203, 204, 205 My problem is how to call a database and specify the colors for the buttons. if the status of the room was filled with the …

Member Avatar for JamesCherrill
0
193
Member Avatar for alaad

Hello.. i want to read a microsoft word file and i did search for this subject but i did not find a response. can any one help me, and thank you.

Member Avatar for alaad
0
125
Member Avatar for jamesjohnson25

My Question was Write a program to collect and store all the cards to assist the users in finding all the cards in a given symbol. This cards game consist of N number of cards. Get N number of cards details from the user and store the values in Card …

Member Avatar for JamesCherrill
0
2K
Member Avatar for Jeanyl_1

Hi there, I am having a problem in running my frame at Java Eclipse. It always says unkown source when clicking the button. I would like to insert the dat to the Jtable but it always display like this ` ## This is the error: ## Exception in thread "AWT-EventQueue-0" …

Member Avatar for JamesCherrill
0
402
Member Avatar for sciprog22

Hello, Thank you for your time! I have a Hashmap that has keys of of type Account (custom class) and the values are strings. The Account class has the following private variables: 1) name (String type) 2) account number (String type) 3) balance (type double). Following are the files: public …

Member Avatar for sciprog22
0
221
Member Avatar for daisyy

protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter pw = response.getWriter(); InputStream inputStream = null; // input stream of the upload file // obtains the upload file part in this multipart request Part filePart = request.getPart("audio"); if (filePart != null) { // prints out some information …

Member Avatar for jwenting
0
2K
Member Avatar for yadhu
Member Avatar for jwenting
0
71
Member Avatar for new_2_java

Hello all, I have a J2EE application that displays a dropdown of items, in Arabic text. This data is stored in a table in underlying MySQL server. The DB character set is set to utf8 and I have in my JSP the carset encoding as utf8 as well. This works …

Member Avatar for new_2_java
0
1K
Member Avatar for changadeya

hello,does anyone have asource code for an incremental game.One like the popular 'Cookie Clicker'. This simple games increase the number of points gained by clicks,or give some 'passive'points generation.

Member Avatar for JamesCherrill
0
95
Member Avatar for abdullah_8

public class adding { public static void main(string[] args); int a=1; int b=2; sum c=a+b; system.out.println c(sum c); } help cant find symbol - method string

Member Avatar for JamesCherrill
0
208
Member Avatar for abdullah_8

public class adding public class adding { public static void main(string[] args){ { int a=1; int b=2; sum c=a+b; system.out.println c;(sum c)-> } } help illegal start of expressions

Member Avatar for abdullah_8
0
155
Member Avatar for Anthony_8

i need help ! instead of ouputting password : admin i want to input asterisk password : ******* thanks in advance

Member Avatar for JamesCherrill
0
427
Member Avatar for minteks

Hey. I'm struggeling hard. Been trying for 5 hours straight without much progress. I just can't see what'ss wrong. This is my third week learning Java in school. I am looking for guidence. Don't want anyone directly solving the task for me. As that would be cheating, I would fail …

Member Avatar for Taywin
0
258
Member Avatar for erikasibulo

Create a java that asks the User which laboratory exercise to perform. consider the following specifications: # The program must incorporate all your laboratory exercise you can use cases, and all must be running. # every option in the menu must have t lest a single sentence definition of what …

Member Avatar for JamesCherrill
-2
191
Member Avatar for Cory_1

I am writing a program for extra practice from my book on finding the max element in array using Java Generics. My Code so far is: public class GenericMax { public static void main(String[] args) { Integer[] numbers = {1, 2, 3}; //Creates array of integers System.out.println(max(numbers)); String[] words = …

Member Avatar for JamesCherrill
0
6K
Member Avatar for hwoarang69

How to get min/Max value of a all column in a two-dimensional arra so for example, lets say you have the following 2d array: 1 2 3 4 5 6 7 8 9 Than the out put should be: -- col 1 -- min value at col 1 is 1 …

Member Avatar for JamesCherrill
0
743
Member Avatar for samantha2015

I am using jodatime for datetime. When I persist the date in mysql it stores 2015-09-04 10:30:18 instead of 2015-09-04 14:30:18. My timezone is GMT+4 or UAE. Do you know how to change the timezone? I try to put GMT+4 but it does not work. I run this line on …

Member Avatar for samantha2015
0
277
Member Avatar for Toby14

I have been trying to see what I did wrong in my code, but I counldn't find out. This is my second java program after the "Hello World". Could anyone help me to find out why I did not get the right answer for this. For example, if we enter …

Member Avatar for Toby14
0
140

The End.