32,199 Topics

Member Avatar for
Member Avatar for Saboor880

Hello! There is another problem which I am facing in JDBC, is Insert statement. I am giving code of my program and explaining my problem . I am using ms access and netbeans 8.1 package database2; import java.sql.*; public class Database2 { public static void main(String[] args) { try { …

Member Avatar for JamesCherrill
0
257
Member Avatar for geysa

Warning: mysqli_query() expects parameter 2 to be string, object given in E:\xampp\htdocs\cadastro\cadastrar.php on line 46 Alguem pode me ajudar? <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>Cadastrar</title> </head> <body> <?php include "config.php"; $nome = isset( $_POST['nome'] ) ? $_POST['nome'] : 'valor_padrao'; $sobrenome = isset( $_POST['sobrenome'] ) ? $_POST['sobrenome'] : 'valor_padrao'; …

Member Avatar for stultuske
0
368
Member Avatar for noobjavacoder

Binary search tree not working, when it should. Any idea what am i doing wrong. any help would be much appreciated. this is the error: Exception in thread "main" java.lang.Error: Unresolved compilation problems: The method iprint(Node1) in the type BST is not applicable for the arguments () The method preprint(Node1) …

Member Avatar for Oxiegen
0
418
Member Avatar for AbiSharma
Member Avatar for Farhan_8

Hi, i am working on a database application in java and converting it from console to GUI, to do so i am using ucanacces driver and connecting it to my access database and creating queries using sql(NOT ALLOWED TO USE ANY OTHER METHOD) and want to perform the basic database …

Member Avatar for rproffitt
0
344
Member Avatar for sireiz

I am trying to iterate through a string and save the characters in a character array. It iterates perfectly and prints the characters but when I try to save the characters in the Array or in a List, it gives me NullPointerException. Can anyone point out the mistake I am …

Member Avatar for JamesCherrill
0
211
Member Avatar for Ayoub_1

so i am working on this table that have buttons combobox and checkbox... i did all of that and i am left whit one this i button that can add a icon in IMAGE column in the same row her is my main private JTable tb; private String[] comboData = …

Member Avatar for JamesCherrill
0
303
Member Avatar for mikey3891

ok guys.... i have a multiple choice scenario to deal with.... my problem is in the division....both my random numbers have been declared as integers.. this caused the problem of the answer being truncated and only the whole number portion being displayed... i tried to cast one as a double …

Member Avatar for mikey3891
0
252
Member Avatar for Misar

hello guys, i'm a noob in programming and i just want to understand this two question below: //does anyone know how is the question end, i head it in exam and i didnt know what to do with it: boolean b =false; int i=90; //also i head this question was …

Member Avatar for rubberman
0
161
Member Avatar for ravi raghav

i am trying to calculate the minimum difference between the sum of elements of two splits formed from a list. this is how the function should work. the function has to take a list of possitive integers(duplicates are possible) and split it into two sub lists. now it has to …

Member Avatar for JamesCherrill
0
214
Member Avatar for Saboor880

Hello to all! I am doing practice for JDBC and using netbeans 8.1. I created a table in mc access and wrote a program. But the problem is that when i pass column index then my program runs successfully. But I pass column name as in my table in mc …

Member Avatar for stultuske
0
243
Member Avatar for laguardian

Hello guys! I'm currently working on a matching app. In the app, the user can select what mode of difficulty they want(easy, medium, hard and suvival) as well as select one of the sets of images for the GridView(nba logos or world flags). My problem is that when the user …

Member Avatar for stultuske
0
336
Member Avatar for Saboor880

Hello guys! I am using netbeans8.1 and apache Tomcat8.0.27.0 I am making a simple web application for practice. I have made two html pages "index.html" and "welcome.html". On page index.html I am taking two parameters from user 'name' and 'sirName'. If user enters Saboor and Siddique in 'name' and 'sirName' …

Member Avatar for peter_budo
0
182
Member Avatar for ThisIsMeOrIsIt

public class MazeArray { public static void main(String[] args) throws FileNotFoundException{ File inputFile = new File("maze1.txt"); Scanner sc = new Scanner(inputFile); int maze[][] = null; maze = createMaze(sc, maze); mazePathFinder(sc, maze); printMaze(maze); } public static int[][] createMaze(Scanner sc, int[][] maze){ int arrayRowSize = sc.nextInt(); int arrayColumnSize = sc.nextInt(); maze = …

Member Avatar for stultuske
1
318
Member Avatar for kayleigh0411

I am trying to make a calculator, but I can not seem to figure out how to get the = operation to work. Everything else seems to be working fine, but I am just really struggling with the =. Any guidance in the right direction would be super helpful! import …

Member Avatar for JamesCherrill
0
1K
Member Avatar for queenofdrama365

JAVA How to read in strings from a file convert to byte code (unicode) and save in array for hashing? how to use hashing (using list of strings) to find longest chain? (from text file dont print the output in a file just dislplay.)

Member Avatar for JamesCherrill
-1
180
Member Avatar for trishtren

Hello, Iv been working on a project for a while now in java and i read somewhere that the GCJ can compile java classes into native binaries, after a quick google search it was revealed that this was true. However after reading a number of posts across the web and …

Member Avatar for jwenting
0
218
Member Avatar for queenofdrama365

list of 28,500 words (read in from text file), one word per line Do not actually store the words in the hash tables; rather use integer arrays initialized to all zeros. If a word hashes to position i, simply increment the value in position i. In running your trials, use …

Member Avatar for JamesCherrill
0
211
Member Avatar for Farhan_8

Is there any easy way to create constructors from private variables from public class Vehicle { public String VehicleNo;// AQP 4300 public String Model; //Toyota Vitz public String ChassisNo;// AE-09-8E-104N public String EngineNo;// AE-0097-EW3 public String DateReg;// 24/04/2006 public String Mileage;// 80,345 } TO THIS PARAMETERIZED CONSTRUCTOR public class Vehicle …

Member Avatar for JamesCherrill
0
206
Member Avatar for Farhan_8

> Hi, i am working on a personal project in which i am creating a ms access database and then connecting it using java to a GUI via UCanaccess .But the problem is how to identify the OOP concepts which should be implemented in my program i need atleaset aggregation,association,inheritance …

Member Avatar for JamesCherrill
0
82
Member Avatar for catby

Hi, I was wondering if someone could help me please.... I am new to java and have been struggling with this for about 2 weeks now!! At the moment I am just trying to get the program to print out a 5x5 matrix with the alphabet in it, using a …

Member Avatar for catby
0
867
Member Avatar for Farhan_8

Hi, I have been assigned Blood Bank Management System as java oop project.So i was wondering i someone can give me a headstart on which classes and methods to implement first so i can modify them applying all the oop concepts first.This is what i have worked on so far. …

Member Avatar for JamesCherrill
0
304
Member Avatar for coder91

Hi I recently started a new job and i've just been giving my first proper coding task. It is to write a method that will take a value and convert it to something else. eg. If the method receives Payment it will return 'P'. I'm just looking for the best …

Member Avatar for JamesCherrill
0
219
Member Avatar for ahmed alnaseri

Hi guys, I am trying to add a new component to my window by clicking on a clickable jLabel. Better said, with mousevent. Unfortunately, it does not work, at least for what i tried with. Can you help me here? My code: package test_1; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Cursor; …

Member Avatar for JamesCherrill
0
213
Member Avatar for noobjavacoder

I have written a program in java using selection, bubble and merge sort and I have to print just the time it took to run the sort which works just fine, but how do I sort a sorted list? I want to see how much faster is it to sort …

Member Avatar for JamesCherrill
0
242
Member Avatar for Trevor_5

i have a code for counting a ones digit in a random number generated 0-100,000,000 and has to display the count 0-9 and how many times they occur.

Member Avatar for stultuske
0
162
Member Avatar for Biz_1

1. Given the following code: String string = "0"; int x = Integer.parseInt (string); Which of these statements is correct and why? A) The code goes in error because the variable string is not an integer B) The code does not in error because the string "0" converts to the …

Member Avatar for Biz_1
-1
258
Member Avatar for kayleigh0411

I am trying to use a hash set to do a Monte Carlo analysis of the Birthday Paradox. Here is my pseudo code: Set number of collisions to zero Loop (10 to100 by 10) Loop: Generate a birthday. (use 1-365) See if it is already in the set. If it …

Member Avatar for JamesCherrill
0
2K
Member Avatar for Oxaro

The king does not hold absolute power in Spartan Politics as the Ephors, the five elected leaders who have proved to be a hindrance at every step, questioning whether the warriors who were physically unmatchable, were apt in tactics ( taktikés in greek) required in the battle ( máchi̱ in …

Member Avatar for pritaeas
0
142
Member Avatar for LibraryCode

Hi,i have a text file,how do i parse it in to second file to display only locations names and their average price? CARREG MAKE MODEL COLOUR LOCATIOn PRICE OWNERS MILEAGE 09-L-1258 OPEL ASTRA SILVER LIMERICK 12999 0 35000 01-D-7845 FORD FOCUS BLACK LIMERICK 1500 3 85000 11-D-7425 NISSAN ALMERA WHITE …

Member Avatar for JamesCherrill
0
259

The End.