32,199 Topics
| |
I am little confused about @Repository in spring.does it define any class? suppose i've done @Repository("TryDao").. does it want to say class TryDao,i.e TryDao.java ??plz clear my confuse.. | |
this is a code for an input window that takes in data from users i tried to save whatever data the user put in in axml file but it is giving me errors...what is wrong with it...help /* * To change this license header, choose License Headers in Project Properties. … | |
I have followed all the tutorials, but still I have a problem that I can't get an object from a form to the controller using Spring MVC. What might be the case? I am using Thymeleaf to format my jsp pages. <!DOCTYPE HTML> <html xmlns:th="http://www.thymeleaf.org"> <head> <title>Getting Started: Handing Form … | |
Hello to all! I have learnt VB.net and used IDE Visual studio 2012. Know I have started learning java. But I have a confusion that can Java be used with .NET frame Work? If Yes then which IDE is required for this. As we know that for VB.Net, C#.Net and … | |
I have followed all the tutorials, but still I have a problem that I can't get an object from a form to the controller using Spring MVC. What might be the case? I am using Thymeleaf to format my jsp pages. <!DOCTYPE HTML> <html xmlns:th="http://www.thymeleaf.org"> <head> <title>Getting Started: Handing Form … | |
I am creating a couponing app where coupons are stored in a database and compared to local ads to let users know when to use the coupons. I have created a database that holds all of the coupons and also one for the user's personal library. I am having difficulty … | |
Hello, For some reason javac errors when I import any of the Apache-Spark classes. I've gone through a number of setup guides to see if there's some environment variable I'm missing, but most don't have a step where an environment variable is set. Anyone have a clue what I'm missing? … | |
Hi, I have to print the following pattern and I am having difficulty in figuring out how exactly should the looping work. The Following is the Pattern that I need * * * * * * * * * * * * * * * * * * * * … | |
import java.util.*; class occult { public static void main(String[] args){ int n = 2; for (int i = 0; ; i++){ if(Integer.toString(i).contains("666")){ if ( n == 1 ) System.out.println(i); n -= 1; } } } } I have written the above java code into c++ . i wanted to know … | |
i have a jtable calendar program and i want the user to be able to click on the dates and i wrote a mouse listener and added it to the jtable nut its not firing .....what should i do my deadline is tomorrow.... | |
i need to write a problem to store a information(Name,ID,GPA) about 10 students and print max gpa , min gpa by using array list | |
Hello Everyone, I am experiencing errors when trying to compile a project in Java 8. The errors are caused by swing components. The code I am using is the following: import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; public class Main2 { public Main2(){ JFrame f = new JFrame (); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.setSize(100, … | |
Write a Javaâ„¢ application using NetBeansâ„¢ Integrated Development Environment (IDE) that calculates the total annual compensation of a salesperson. Consider the following factors: A salesperson will earn a fixed salary of 60,000 dollars. A salesperson will also receive a commission as a sales incentive. Commission is a percentage of the … | |
Hi i have an assigment that is giving me a hard time . I want to make a media player in java by using netbeans Can anyone give me an efficient way to do this assigment. please help me shoaib in java [Click Here](http://www.daniweb.com/software-development/java/9/contribute) | |
Is it possible to OCR an image using java? Any links to logic or examples or APIs would be appreciated. | |
I need to crearte pdf file from database table using java with multiple rows and column format design . | |
Hi , Can anyone point me to fillPolygon source code , In Graphics.java it is declared as abstract class . - Nataraja G | |
hi everyone system.out.println("thank you all for the birthday greeting!!!!!!!!! much appreciated.) hi james it has been quite a while. sorry that I had upset u the last time I was here. I am trying to build a payroll system for a community college in java. and the calculation is off. … | |
Hello guys, I'm trying to add an object called product into an ArrayList of orders. I'm getting an error: no suitable method found for add(Product). Did I miss anything? This is my addOrder method: public void addOrder(ArrayList<Order> orders, Product product){ orders.add(product); } I've passed the ArrayList of orders and the … | |
Square A square is a specific two-dimensional shape. Square should be implemented as a subclass of TwoDimensionalShape, a concrete class. A square has equal sides in both dimensions. This is how to create a square: public Square( int x, int y, int side ) /* use super constructor to set … | |
Could someone please look at my ose and let me know where I may be going wrong. The problem to solve is define a class Odometer that will be used to track fueland mileage for an automobile. The class should have member variables to track the miles driven and the … | |
Hello guys! I'm trying to call a method in main called "buyProduct" which displays all products to the user. I' a getting a NullPointerException though. Here's what I have: public static void main(String[] args) { OnlineShopping shop = new OnlineShopping(); ArrayList<Cart> carts = new ArrayList<Cart>(); ArrayList<Order> orders = new ArrayList<Order>(); … | |
i did a simple interface programme where one interface extends two interface.so,no error is showing,but no output is showing..here is the code.. interface a { int add(int x,int y); } interface b { int mul(int x,int y); } interface c extends a,b { int div(int x,int y); } class d … | |
I have a arraylist which i want to store in database.I am using preparedStatement so how can i pass my arraylist as parameter to store it in database. my code is: public void insertEnquiryRecord(StudentEnquiryEntity enquiryEntity) { // TODO Auto-generated method stub System.out.println(" hi from vivek.."); ConnectionFactory connectionFactory = null; connection=connectionFactory.getConnection(); … | |
Hello , When we do an XOR operation between two rectangles ( one is completly inside of the other ) output in GPC & Clipper is something like , exterior Rectangle + a Hole ( which is interior Rectangle ) for my application output has to be a set of … | |
Hello guys! I'm working a project and it seems that there's something wrong with my switch-case. For example, in the user menu, the user can input the number 2 then it would allow them to deposit, but somehow, it keeps displaying the first switch-case. switch(resp){ case 1: users.get(0).displayProfile(); users.get(0).editProfile(); break; … | |
hi everyone ! I'm working on a network strategy game with 3 components one reffere will define the mission and 2 players will make moves and attacks in a turn based way . in the end of each turn , the reffere will generate a rapport of each player action … | |
I am working on an 8 queens problem, I am to place all 8 queens on the board before figuring out if they will attack one another. I am attempting to do this using a 2d array. How do I create random queens (1's) for each row, but making sure … | |
Hello , Can anyone give me an efficient way to do Rect/Polygon filling as below/Attachment . ![Patterns.png](/attachments/small/3/13ab1a68a958648cc9313476241adfb2.png "align-left") ![Patterns.png](/attachments/large/3/13ab1a68a958648cc9313476241adfb2.png "align-center") as of now I'm drawing lines & single pixel rectangles to do this and my application has slowed down so I'm looking for an alternative . This is an extension … | |
i have this code to make sodoko board with 9*9 cells(button cells ) but i cannot made all Jpanels contain my buttons i made the first Jpanel only import java.awt.Color; import java.awt.GridLayout; import java.lang.reflect.Field; import javax.swing.BorderFactory; import javax.swing.JFrame; import javax.swing.JButton; import javax.swing.JPanel; public class Sodoko extends JFrame { private Sodoko() … |
The End.