32,204 Topics

Member Avatar for
Member Avatar for JoeD1

I created a String[][] grades, who's size is set by number of students User enters. The array is then populated with my first for loop, and the next for loop is supposed to print out each students date line by line. If I only enter 1 Student and fill in …

Member Avatar for stultuske
0
279
Member Avatar for murali2489

Hi All, I have created a Java applet in Eclipse and ran it in eclipse, it works fine . To run the applet in Webbrowser it was mentioned to embed the .class file inside a webpage by creating a HTML file. My class name is MyFirstGUI. i have created a …

Member Avatar for murali2489
0
278
Member Avatar for yusking

Using an SQLite database your program should be able to create, read, update, and delete room reservations. Present the user with a menu at the beginning using the console or JOptionPane for example: Choose a task 1. Add a reservation 2. View a reservation 3. List all reservations 4. Update …

Member Avatar for stultuske
-2
2K
Member Avatar for gauravagg2

HI!!!! i am a student of B.Tech 3rd year plz suggest me a mini project in java i have basic knowledge of swing and jdbc and elementary idea of networking

Member Avatar for JamesCherrill
0
539
Member Avatar for mrosario

hi guys, i'm really having a trouble with my conversion code... it says the NumberFormatException with this "Student[] studs = new Student[Integer.parseInt(fr.nextLine())];" but i have no idea why. can someone help me? import java.util.Scanner; import java.io.*; public class SampleFileProcessing implements Serializable{ private static Scanner fr; public static void main(String[] args) …

Member Avatar for mrosario
0
2K
Member Avatar for evan.winstead.7

Hello! I am looking into game development, and recently discovered that most cube based games (with procedural generation) are coded in java, and i was wondering why that is!

Member Avatar for evan.winstead.7
0
234
Member Avatar for newbie14

We have socket application which sends out quite a number of email out. So we decided to send huge number message into it which will trigger emails. Eventually we see the email are taking hours before it reach any of the inboxes either gmail,hotmail or yahoo etc. We have this …

0
404
Member Avatar for lena1990

HI, I WANT TO PRINT THE ASCII OF THE FOLLOWING TEXT ÇÑÔÏ ÇäæÑ ÇÈÑÇåíã BUT ALL I GET IS 63 63 63 63 32 63 63 63 63 63 63 63 63 63 ?????????????? I WILL BE GREATFUL FOR ANY HELP THANKS IN ADVANCE

Member Avatar for TokamakFusion
0
161
Member Avatar for game06

I am trying to create android project in eclipse, for some reason it doesnt create gen > R.java file. I did clean project and doesnt work. any ideas?

Member Avatar for mustafaneguib
0
70
Member Avatar for muhammad.a.haq

public class naming { private String name ; private String address ; private int idCard ; private int firstMoney; public naming() { name=""; address=""; idCard=0; firstMoney=0; } public naming(String n , String ad ,int id , int fm ) { name=n; address=ad; idCard=id; firstMoney=fm; } public String getName() { return …

Member Avatar for muhammad.a.haq
0
220
Member Avatar for mesbahuk

I have a Java code block like following: public TcpConnection(TcpSocket socket, long alive_time, ITcpConnectionListener listener) { init(socket,alive_time,listener); start(); } For the conversion in C#, When I try to replace the `start()` method with `System.Threading.ThreadStart()`, it gives an error. How can I start a thread in C#?

Member Avatar for ddanbe
0
279
Member Avatar for abra_ka_dabra

Training data: f(1)=0.1 f(2)=0.2 f(3)=0.3 Test data: f(9)=0.9 f(10)=1.0 f(11)=1.1 can you please tell me how the data will look like in training data file and test file?

0
87
Member Avatar for vinnitro

I am creating a game of Racing cars in java But the problem is that my car when moved in any direction makes flickering on the screen. As the project is a Core java project it can only be made in a Windows application form. I set the speed of …

Member Avatar for JamesCherrill
0
2K
Member Avatar for Mr.M

Hi DW I created a program in NaviCoder For Java and now I want to export it so that it can be a exe file so that it can be executed on a computer on it own without the need of an IDE. Thanks

Member Avatar for JamesCherrill
0
158
Member Avatar for reincom

public class PolarCoordinates { public static void main(String[] args){ int r=10; double x=0,y=0,theta=30; x=r*Math.cos(theta); y=r*Math.sin(theta); System.out.println("The value of x is :" +x); System.out.println("The value of y is :" +y); } } help please? it gives me wrong answer. 10cos(30) should equal to 8.7, but it gives me 11.7 ans. 10sin(30) …

Member Avatar for reincom
0
269
Member Avatar for Mr.M

Hi Dw I'm creating an atm appication and now my research pointed me to use the Java Point Of Service/Sale (JPOS) my application allow user to choose the amount from the options displayed on the screen and the user will use the number keypad to make his/her selection and the …

Member Avatar for Mr.M
0
591
Member Avatar for murali2489

Hi all, I have created an abstract class Named Employee and one Sub-Class named FullTimeEmployee. In my abstract class "Employee", i have defined two constructors one without parameter and one with two parameter, both used to intializee first name and last name. My aim is to print payroll for employee …

Member Avatar for murali2489
0
204
Member Avatar for corliss

Hi All, I have created an application that allows a user to select a diectory, where we parse the photos, and upload to a database. The issue that I am having is that I have a button on the form found in the newJFrame.java class called upload that when pressed …

Member Avatar for corliss
0
368
Member Avatar for JamesCherrill

I know this is going to be really simple, and I'm going to look like a fool when someone answers it, but... I'm tryingto replace any occurrenxe of any of these characters - ?_ with a * in a String I start with replaceAll("[ _-]", "*"); and all is well …

Member Avatar for masijade
1
234
Member Avatar for somjit{}

doing this works : contentPane = new JPanel(); contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); contentPane.setLayout(new BorderLayout(0, 0)); textArea = new JTextArea(); scrollPane = new JScrollPane(textArea); contentPane.add(scrollPane,BorderLayout.CENTER); setContentPane(contentPane); however this doesnt : contentPane = new JPanel(); textArea = new JTextArea(); scrollPane = new JScrollPane(textArea); contentPane.add(scrollPane,BorderLayout.CENTER); contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); contentPane.setLayout(new BorderLayout(0, …

Member Avatar for somjit{}
0
331
Member Avatar for lakshmia

i would like to know the connection between socket and webservice,ws replace sockets?or can i embed cocket programing in ws?

Member Avatar for jwenting
0
117
Member Avatar for LEO FRANCIS

PLEASE.... I NEED A TOPIC TO DO A PROJECT WORK IN NETWORKING BASED ON .NET OR JAVA.....PLEASE HELP ME OUT SOON

Member Avatar for malaysarkar
0
68
Member Avatar for lena1990

hi all, i have a java program that store arabic data in ms access to let the arabic writing apper i should change the uni code of the operating system but when i give it to my friends to insert data on thier laptop but they forget to change the …

Member Avatar for lena1990
0
124
Member Avatar for KellzDD

I am trying to figure out how to print these number patterns. pattern 1 6 56 456 3456 23456 123456 pattern 2 1 212 32123 4321234 543212345 65432123456

Member Avatar for cool_zephyr
0
113
Member Avatar for Andy_2

I've tried installing the jackcess libaray (http://sourceforge.net/projects/jackcess/files/) into my project using Project/Preferences/install jar. However, when I try import static com.healthmarketscience.jackcess.Database.*; it just says 'Incorrect package'. How do you install this type of libarary? (I'm a real nooob so sorry if this is obvious). Also - why so many programmers so …

Member Avatar for JamesCherrill
0
307
Member Avatar for mesbahuk

I'm currently working in a java to c# conversion project. In one part I got this Java code snippet. public CustomType someMethod(Message msg) throws IOException { byte[] data = msg.toString().getBytes(); } to my understanding, data contains the byte representation of the string *msg.toString()* But when I try to write it …

Member Avatar for mesbahuk
0
264
Member Avatar for reincom

public static void main(String[] args){ /*The number of bacteria, B, in a culture that’s subject to refrigeration can be approximated by this formula: B=300000*e^-0.032t Using this formula, write a program that prompts the user for a value of time, calculates the number of bacteria in the culture, and displays the …

Member Avatar for reincom
0
107
Member Avatar for benjo.s.lucas

import java.util.Scanner; public static void main (String [] args) { Scanner p = new Scanner(System.in); String w; System.out.print("Enter something :"); w = p.next(); String[] m = w.split("\\s+"); for (int i=0; i<m.length;i++){ System.out.println(m[i]); } } } if i input: a s d the output is: a only

Member Avatar for JamesCherrill
0
191
Member Avatar for Zdneth_1

Hi.. I want to seek help about database in SQL and Jtable in Netbeans. In our sales inventory system, we have these tables in database namely 'stockmasterlist' and 'pricemasterlist'. They are relational since they have in common with regards to their 'ProductNumber'. Now, since they are of different tables but …

Member Avatar for pbj.codez
0
249
Member Avatar for java_help

Firstly, I am a beginner in Java, and I have never been into any programming before, so it seems like I need a little help to solve a task. The task is "I've a text file with the size of more than 5 MB, & I need to clear the …

Member Avatar for JamesCherrill
-2
542

The End.