32,204 Topics

Member Avatar for
Member Avatar for onako

I store matrix entries in std::vector<double>, such that the reading is row by row. This means, for matrix 1 3 4 8 9 3 3 6 8 1 1 2 2 0 9 8 7 6 the std::vector<double> would have entries: {1,3,4,8,9,3,3,6,8,1,1,2,2,0,9,8,7,6}. To transpose the matrix I use the naive …

Member Avatar for jon.kiparsky
0
110
Member Avatar for yan_izumi

ijust learn java ..for me its quite interesting to discover ...now,i got my first asgmnt ...i still searching how to do it ..i got a asgmnt on how to read a capital letter n print the output in reverse order with lower case form ...can u help n quide me …

Member Avatar for NormR1
0
38
Member Avatar for NewOrder

i was looking at this code and thinking when is it a good idea to use the do-while method. [CODE]import java.io.*; class ValidHex { public static void main(String[] args) { Console console=System.console(); String hex; boolean valid; do{ System.out.println("Please enter a valid hexadecimal number"); hex=console.readLine(); if(hex.length()==0) valid=false; else valid=true; for(int index=0;index<hex.length() …

Member Avatar for NewOrder
0
117
Member Avatar for skylarkinoz

I have a txt file with continuous binary data. That is: no separators. How do I read 1 bit from this file or read 7 bits come to that.

Member Avatar for NormR1
0
68
Member Avatar for dresposure

I am workin on a project relating to multipart file transfer. However I need to compress the file before transferring the files. Can som1 help me wid the code for compression of the files. The platform is JAVA

Member Avatar for NormR1
0
61
Member Avatar for Mkaveli

I want to get information on all the running windows thats running under windows. I know this can be done in C++ but i really want to make it work in java. So if anyone can help me i appreciate it. Thanks!

Member Avatar for NormR1
0
80
Member Avatar for sid.maths

I have made a series of programs, and I am facing a similar problem. This however is very strange, and maybe if you can get me around this I can find a way through the other ones: Look at this code: outside loop: int iter=0; loop: { blah blah -- …

Member Avatar for sid.maths
0
101
Member Avatar for supra

Hello Everyone, I want do a project on Java Applet/Swing for my final yr. Can anyone give me suggestions what kind of projects , specifically on what topic I should choose which can help in campusing. Frankly, I love programming in Java. Hope to get a reply from you. Thanking …

Member Avatar for peter_budo
0
207
Member Avatar for coroll

Hi, i get the following error java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause. this is my code [CODE] import java.sql.*; public class DetOrderNum{ public static void main(String[] args){ Connection con=null; ResultSet rs=null; Statement stmt=null; int pkey=0; String itemn="jin"; try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odbc:MY-PIZZA","",""); String q="select order_num from Order where …

Member Avatar for javaAddict
0
311
Member Avatar for friendship

hi... i want some advanced project topics for BE computer engineering..

Member Avatar for peter_budo
0
14
Member Avatar for mith_cool

I wrote a program to get first 100 no. which are divisible by 3. Heres the code [CODE] import java.io.*; class app { public static void main (String args[]) { for(int i=0; i<=100; i++) { int x; try{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter your no."); x= Integer.parseInt(br.readLine()); if(x%3==0) { System.out.println("The …

Member Avatar for javaAddict
0
121
Member Avatar for coroll

HI this is my code.it uses access database.But givs me this error java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause. import java.sql.*; public class DetOrderNum{ public static void main(String[] args){ Connection con=null; ResultSet rs=null; Statement stmt=null; int pkey=0; String mn="jin"; try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odbc:MY-PIZZA","",""); String q="select order_num from Order …

0
80
Member Avatar for jjhames
Member Avatar for jjhames
0
732
Member Avatar for NewOrder

my code should accept 5 numbers, sum them up , average them.. and print the numbers that are below the average it doesnt appear to be working..why? [CODE]import java.io.*; class Pra1 { public static void main(String[] args) { Console console=System.console(); int size=5; int number=0; String allNumbers=""; String Snumber=""; int sum=0; …

Member Avatar for tong1
0
198
Member Avatar for cjmartin

I have a JComboBox that is set to editable and has a keylistener attached. The input comes from a scan gun. What I am trying to do is if there are more than one item in the JComboBox, I need to scan a barcode that represents the # sign and …

Member Avatar for cjmartin
0
209
Member Avatar for GriffinMex

I have an scrolling side dhtml 9 menu anchored in a cell. The starting coordinates are offset x and y. What I am trying to achieve is that when the page starts scrolling, the offset changes to a different x,y coordinate closer to the top so my menu doesn't end …

Member Avatar for GriffinMex
0
171
Member Avatar for suguna07

Hi everyone, can someone help to solved this question I have attach the question.....please help me Thank you

Member Avatar for NormR1
0
100
Member Avatar for joji86

Hi , I am trying to call c++ exe from java applet.For this purpose am using processbuilder.My code is as follows ProcessBuilder pb = new ProcessBuilder(s); Process process = pb.start(); final InputStream is = process.getInputStream(); OutputStream out = process.getOutputStream(); PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(out))); pw.println(1); pw.println(1 +"" +2); …

Member Avatar for NormR1
0
216
Member Avatar for coding101

lets say i have an array of character like this abbcd (01234)-positions and i want to check if this array holds all of the characters to the other array aabcdd return true if ALL of the characters are available. so abbcd is my list and aabcdd would return false because …

Member Avatar for NormR1
0
35
Member Avatar for albgran

Hi Guys I need to compile and run a c++ program from java using Process a = Runtime.getRuntime().exec ("g++ -g function.cpp -o function"); Process b = Runtime.getRuntime().exec ("./function"); the problem is that the output I get from the c++ program is not correct but If I compile and run it …

Member Avatar for NormR1
0
105
Member Avatar for shahreza

[CODE] index no.student room 2 3 D/BARU 2 9 D/BARU 2 1 D/BARU 4 44 A005 4 1 A002 4 1 A002 4 19 A002 4 19 A002 4 35 A001 4 29 BSK 2/3 4 25 A106/107 4 10 A005 4 0 B202 4 10 B208/209 4 20 D/BARU …

Member Avatar for shahreza
0
120
Member Avatar for blueman:-0

I have alot of tables in database in one of this contains owner_id and another one have relation many to many with that,and that table have dissent_type how i can select dissent_type where owner_id = ""

Member Avatar for JamesCherrill
0
111
Member Avatar for kulrik

I am really confused by this problem. PLEASE HELP Write a program that reads a set of floating point data values from the input. When the user indicates the end of the input, print out the count if the values, the average, and the standard deviation. The average of a …

Member Avatar for tong1
0
235
Member Avatar for pumpkin_pub

so i have a little issue here. i have a program that creates a list of random numbers, for sake of example here it is: [CODE] public class RandomSeq { public static void main(String[] args) { int n = Integer.parseInt(args[0]); for (int i = 0; i < n; i++) System.out.println(Math.random()); …

Member Avatar for ashok2004_urs
0
329
Member Avatar for benaziraziz

sorry i didnt have any code. i need help for developing school time table project using any language.i will be grateful if you people are extending your help.thanks..........

Member Avatar for javaAddict
0
48
Member Avatar for Vishal Soni

Is it possible to make a project of speech to text converter in JAVA?If yes den in which platform?j2se or j2ee or anyother?

Member Avatar for CrazyDieter
0
68
Member Avatar for runjel

hello.. im making a class scheduling program for teachers wherein the teacher will choose the subject loads.. my problem now is i want to avoid the conflicting of time.. example.. the teacher has a class of 7am - 8am in section a.. that teacher cannot choose a class with a …

Member Avatar for NormR1
0
145
Member Avatar for kyrus

hi, im new here i just like to ask on how to view table with selected rows in Jtable like ex: name that start letter 'A' only or the column that contains the string that i type in the textfield in the mainpanel? thanks

Member Avatar for NormR1
0
74
Member Avatar for coroll

Hi!, i have 48 errors with following code.Plzzzzzzz.......can anyone tell me the mistake that i had done. thanks in advance. this is my code [CODE] import java.lang.String; import java.lang.Integer; import java.lang.Float; import java.util.Hashtable; import java.util.Enumeration; import java.sql.*; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class testM{ public static void main(String[] …

Member Avatar for coroll
0
336
Member Avatar for tong1

Assuming that I have text in JTextArea where the characters are presented in different Font and colors since the class has a method :setFont(Font f), setForeground(Color fg). I wonder if there is a way to save it on MS Word.

Member Avatar for tong1
0
84

The End.