35,618 Topics

Member Avatar for
Member Avatar for Aditya0025

hello..... i am new in the coding field..... and i understand the working of codes in java......but couldn't able to start.....i have to make a program of videoconferencing.....how to start coding on it.....

Member Avatar for jwenting
0
187
Member Avatar for 9ja boy

Write a java program that accept two numbers from the user and print out the following sample out first number: 7 second number: 2 the second number goes in to the first number 3 time with a remainder of 1.

Member Avatar for JamesCherrill
-1
329
Member Avatar for Doogledude123

Is this try catch block enough to ensure the process ran successfully? protected boolean attemptLaunch() { try { System.out.println("Attempting to open '" + name + "'."); //Try to open the Process new ProcessBuilder(path).start(); return true; } catch (IOException e) { System.out.println("Opening failed. Will retry during next Iteration."); return false; } …

Member Avatar for jwenting
0
286
Member Avatar for mike chibundi

Am coding a college council voting system for my school in netbeans and mysql saver. i have populated jtables containing cadidates (jtable1 for president, jtable2 for vice president etc) and i have put a jbutton so that after sellecting candidents of choice one from each jtable, you click the jbutton …

Member Avatar for JamesCherrill
0
336
Member Avatar for Jagdeep_1

I am using eclipse 4.4 luna, where i created the web application project as my project is to be deployed on app engine. So when i try to run the project, there is no 'run on server' option to run the project on Tomcat. Please help me, am stuck on …

Member Avatar for Jagdeep_1
0
265
Member Avatar for 47pirates

I'm trying to give access to client computer from my server and also tryin to revoke the granted access... the grant is successful but the revoking is not working please help. hms is the satabase that i want to give access to my clients.. my code try { Connection con …

Member Avatar for stultuske
0
1K
Member Avatar for altjen

Im using NetBeans to create a data entry software for a friend. when I save a data, it create a folder in specified location, and the name of that folder will be different from each other for example. ![1.JPG](/attachments/large/4/e1b8ccbadaaab2f4ef21954288e53b40.JPG "align-center") it pick the Date,Invoice Number, Subject name, and create the …

Member Avatar for altjen
0
272
Member Avatar for liphoso

Please help me with how i may receive an sms to my java application using ozeki. I have used sample code that i got from http://www.ozekisms.com/index.php?owpn=584 , I used that sample code and was able to send sms. Using the same code how may i receive an sms so that …

0
122
Member Avatar for Justin_16

package Agents; import java.io.IOException; import java.io.PrintWriter; import java.sql.Connection; import java.sql.DriverManager; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @WebServlet(name = "InsertAgents", urlPatterns = {"/InsertAgents"}) public class InsertAgents extends HttpServlet { protected void doPOST(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); try (PrintWriter out = response.getWriter()) { /* …

Member Avatar for jwenting
0
290
Member Avatar for centenond

Im having trouble making the enemy walking intelligence, what road to take to reach the target. So even though i have try this for 3 days, i have no clue what to do now. Say a enemy have a target. and the enemy should aproach it. but i want the …

Member Avatar for Schol-R-LEA
0
171
Member Avatar for Doogledude123

So this is the first time using a Spring Layout and I gotta say, it honestly seems like a very nice Layout to use, but I can't quite seem to get it working the way I want it to. Let me explain: I have a JList which should be inset …

Member Avatar for JamesCherrill
0
305
Member Avatar for Doogledude123

I need a boolean to be stored with a String (or possibly a Path, not sure which one I want to use yet). I thought about using a Map, so I did some looking around and found out that LinkedHashMaps are the only type of Map that stay in Order …

Member Avatar for Slavi
0
304
Member Avatar for Bijiann

I am doing program in java .I have designed a jsp page which has 3 drop downlist's...country,state and district.I want to display the values in drop down list state when a country is selected...(for eg:-if india is selected,drop down list state must have only the name of states in india).In …

Member Avatar for edgar222
0
6K
Member Avatar for edgar222

how can I select project from dropdown then execute query catching the value of the project selected I have the follow code using AJAX and JSP pages admin.jsp <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ page import="java.sql.*"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; …

0
162
Member Avatar for Mr.M

Hi Dw. I have a question of how can one detect a program attempting execute/run and also most importantly how to allow/deny programs to execute/run. I'm sure we all have came across with UAC where it ask you to allow or deny that program from running, normally this for elevating …

Member Avatar for Mr.M
0
110
Member Avatar for ilovearsenal

i copied eclipse and its files of code into a new comp. i installed the latest version of java and went into eclipse. i ran the porgram and the code that worked just fine on my previous computer compiled but the applet was blank and it said "start: applet not …

Member Avatar for stultuske
0
142
Member Avatar for 100hil

No working in jsp through tomcat...the resource are not fullfilled...and no output folder ..how to solve error

Member Avatar for stultuske
0
55
Member Avatar for Catarino

public class Test { public static int f1( int m1 ) { return ( m1 + 1 ); } public static double f1( double m1 ) { return ( m1 * m1 ); } public static void main( String[] arg ) { double x1, x3; x1 = 2.0; x2 = …

Member Avatar for rubberman
0
162
Member Avatar for Sayam_1

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..

Member Avatar for JamesCherrill
0
72
Member Avatar for hermela_1

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. …

Member Avatar for stultuske
0
1K
Member Avatar for Kert

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 …

0
321
Member Avatar for Saboor880

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 …

Member Avatar for JamesCherrill
0
283
Member Avatar for Kert

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 …

Member Avatar for stultuske
0
1K
Member Avatar for malik.epperson

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 …

0
169
Member Avatar for Mr.UNOwen

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? …

Member Avatar for Mr.UNOwen
0
2K
Member Avatar for VigneshCIyer

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 * * * * * * * * * * * * * * * * * * * * …

Member Avatar for JamesCherrill
0
100
Member Avatar for jamesjohnson25

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 …

Member Avatar for vijayan121
0
519
Member Avatar for hermela_1

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....

Member Avatar for JamesCherrill
0
966
Member Avatar for Tala_22

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

Member Avatar for JamesCherrill
0
43
Member Avatar for sirlink99

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, …

Member Avatar for JamesCherrill
0
1K

The End.