32,204 Topics

Member Avatar for
Member Avatar for lena1990

hi guys i want your help i want to send email from private company email to yahoo or gmail company using java i will be thankful for any help

Member Avatar for Ezzaral
0
239
Member Avatar for abhishek20

Hi i am using java code to connect to MS access using following url jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=C:/login.mdb Now if I need to connect to the run this java code from some other machine in network then how will I write the path "DBQ=C:/login.mdb"

Member Avatar for Pradeeps206
0
343
Member Avatar for babi.meloo

I need to design and implement an application that reads a string from the user and prints it one character per line. import java.util.*; import java.text.*; public class EveryLine5 { //---------------------------------------------------------------------------------------------- // Reads in a string. //---------------------------------------------------------------------------------------------- public static void main (String[] args) { int length; char current; String msg …

Member Avatar for JamesCherrill
0
2K
Member Avatar for reenarankawat

Below is the java source code where I am trying to read a file and want to display its content on an applet which is opened through a html page. The problem is that when I try to open the applet through appletviewer there is not problem the data is …

Member Avatar for JamesCherrill
0
980
Member Avatar for techxaidz

I have a .txt file that has a text on it, and i want to read from it and show it on a JTextField but I dont know how to code it. So far here's what i know: viewIO = new DataInputStream(new FileInputStream(phoneList.getModel().getElementAt(phoneList.getSelectedIndex())+".dat")); for(int x = 0; x < 5; …

Member Avatar for JamesCherrill
0
114
Member Avatar for lena1990

hi all i want to enter a turkish word to the database using netbeans but what apper in the database is something like that how i can solve it?????? thank you for help

Member Avatar for zeroliken
0
175
Member Avatar for linezero

I have code in a txt file public class TestClass { static void main(String[] args) { int id; int number; id = 3; number = 33 telNo = id int id; } } I know how to read the file using bufferedreader and get the line number but i would …

Member Avatar for JamesCherrill
0
303
Member Avatar for hwoarang69

i got a text file <TextView android:id="@+id/TV_LABEL" /> <Button android:id="@+id/B_BUTTON" /> than in my java file password = (EditText)findViewById(R.id.ET_PASSWORD); button = (BUTTON)findViewById(R.id.B_BUTTON); public void onClick(View view) { // TODO Auto-generated method stub switch(view.getId()) { case R.id.TB_TOGGLE: } my question is what is value these variables password switch(view.getId()) case R.id.TB_TOGGLE case …

Member Avatar for peter_budo
0
68
Member Avatar for saraalaa.khodeir

code should do this : a) Given an unsorted array of integers, your task is to sort the array by applying the following algorithm (Assume that the input doesn’t contain duplicates ):  Execute the following steps starting from the first element in the array: – Count the number of …

Member Avatar for Taywin
0
180
Member Avatar for philo.meena.1

iam in a hurry to create a database for the printers and its working in a shop and ..can u just help me ,how to write a program using java program for the above statement... i hope u guys help me....

Member Avatar for JamesCherrill
0
135
Member Avatar for Kayla1993

I need some help starting my project. You will have the following functions (no violation of these interfaces) and you may have others, as needed: − public static void GenerateRandomTriangles(int numTriangles) to create a file RandomTriangles.dat having the following format (including some comments like the ones shown below) with random …

Member Avatar for JamesCherrill
0
165
Member Avatar for strizh

I'm trying to override equals method, but I'm getting error I have two classes one abstract and the inherited class. public abstract class MyData extends Object { public abstract boolean equals(MyData ohtherData); } public class IntData extends MyData { protected int num; public IntData (int n) { this.num = n; …

Member Avatar for stultuske
0
178
Member Avatar for alanso

hey...how can i use the dialog box joption for now i just use the normal display when i do the joption there alot of error can anyone help thanks. package javaapplication1; import java.util.Scanner; public class JavaApplication1 { static int MicrowaveNetPerIntem =638,JuicerNetPerIntem=270,CookerNetPerItem=216,OvenNetPerItem=229; static Scanner input=new Scanner(System.in); static int MicrowaveSellingPrice=1338; static int …

Member Avatar for stultuske
0
231
Member Avatar for mobility42

i am trying to load up my ObjectQueue variable objQueue with a task to run some operations on, and there i have a NullPointerException error. the error happens at: `objQueue[0].insert(Task);` I have declared the ObjectQueue variable in a similar fashion on other programs and have had no problem. sort of …

Member Avatar for mobility42
0
299
Member Avatar for sapure
Member Avatar for sapure
0
246
Member Avatar for JWarren1996

All I'm tryin to do is set this up to show the array in the command prompt screen. everything looks good to me, > C:\Users\Work Time\Desktop>javac SearchSource.java but I keep getting this: SearchSource.java:7: error: <identifier> expected System.out.print(); ^ 1 error Heres the program: public class SearchSource { public static void …

Member Avatar for JWarren1996
0
2K
Member Avatar for godaged

Write a method setRating that reads a rating from the keyboard, insisting that the rating supplied by the user be valid. rating should be 1 to 5; public void setRating(){ System.out.println("enter rating "); int myRating = keyboard.nextInt(); } is this correct? or need to include like this public void setRating(){ …

Member Avatar for godaged
0
196
Member Avatar for mukororokudo

Can anyone help me on this problem, i really have no idea how to do it since i'm new to these stuffs. So please be easy on me. Thanks ! Create the algorithm based on the following requirements: Input: Four grades per student are entered by the user. HINT: accept grade1, grade2, grade3, grade4 …

Member Avatar for Taywin
0
207
Member Avatar for hwoarang69

i am useing java xml to make android apps. in my xml file i have a 2 edittext where user will enter 2 numbers. <EditText android:id="@+id/ET_FIRST" android:layout_width="300dp" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_marginTop="50dp" android:hint="Enter 1st number hint" android:inputType="numberDecimal" android:textColor="#ffffff" android:textSize="25dp" android:textStyle="bold" /> <EditText android:id="@+id/ET_SECOND" android:layout_width="300dp" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_marginTop="100dp" android:hint="Enter 2nd number hint" android:inputType="numberDecimal" …

Member Avatar for Wisestepp
0
269
Member Avatar for challarao

Hi all, I came to know that in Java or c++, constructor is executed only after the allocation of space.... Then what does an implicit default constructor(in c++) or default constructor in Java does....? If we explicitly define our constructor then the initialization will be done according to our needs! …

Member Avatar for JamesCherrill
0
299
Member Avatar for don.fck.wit.cleeve

import java.io.*; import java.util.*; public class Cleeve { /** * @param args */ public static void main(String[] args) throws IOException { File inFile = new File("Sport.txt"); Scanner inFile2 = new Scanner(inFile); File outFile = new File("Proffesional.txt"); PrintWriter outfile = new PrintWriter(outFile); File outFile2 = new File("AmaturElse.txt"); PrintWriter outfile2 = new …

Member Avatar for JamesCherrill
-1
486
Member Avatar for vishu.bhavsar

Hi, I have 1 jframe containing 1 panel. This panel shows data using JTable. I want to put button at the bottom of the panel to print that data in PDF. Can I reduce the size of the JTable? Currently it takes the size as that of the panel. Thanks

Member Avatar for mKorbel
0
995
Member Avatar for Commando123

Hello, I am facing a problem with the look and feel for oracle forms. I am using the file laf_11112.jar. one Problem is that when we open a window the title bar displayes the text in squares. the language original text is in Arabic. second problem is that we can …

Member Avatar for mKorbel
0
189
Member Avatar for peter_budo

I'm creating a jar file of my game to make it smaller and easier to transfer. I was able to created jar file out of my classes and include there images. Question is - how do I include txt file which is used for reading and writing?

Member Avatar for peter_budo
0
8K
Member Avatar for Yoink

Hi, I'm haveing trouble turing an array of Card objects into an ArrayList. The main reason I would like to use an array list is because I can then use the get/remove/add methods associated with an array list which is much harder to do with a normal java array. Heres …

Member Avatar for JamesCherrill
0
865
Member Avatar for kittukrrish

Hey guys I would like to develop the random quiz game in JAVA. This game is already done in Android It's available at http://www.cannytech.com/AndroidRandomQuiz.apk......please tell the procedure..... Android market url is https://play.google.com/store/apps/details?id=com.canny.randomquiz

Member Avatar for stultuske
0
85
Member Avatar for alcina

hi, i need to write a program that ask the user for first name, lastname, day of birth, day, month year, using a html form, and print out the user info using a servlet, and when user type in the number of month, the output will have to be in …

0
52
Member Avatar for aabbccbryanmark

case 2: System.out.println(); ctr2=1; System.out.println("Select products and add to cart"); for(ctr=0;ctr<nList;ctr++) { System.out.println(ctr2 + ". " + itemArray[ctr] + " " + priceArray[ctr]); ctr2++; } System.out.println(); System.out.println("Enter the number of item you want to purchase: "); int itemPur = Integer.parseInt(a.readLine()); System.out.println("Choose the product you want to add to cart"); for(ctr1=0;ctr1<itemPur;ctr1++) …

Member Avatar for aabbccbryanmark
0
3K
Member Avatar for losh177

Hi, I'm having problems with line 37 in my Driver class. I know that I get that error because, according to Java, the variable Task, in the Driver, has not been initialized, but I do not see how I'm not initializing it. Thanks [CODE]import java.util.Scanner; import java.io.*; public class Driver …

Member Avatar for dimasalang
0
308
Member Avatar for hwoarang69

i am trying to play music when my app start but this line is giving me a error. on 'res'. so i have a project called ANDROID_01 ANDROID_01 > res > sound ourSong = MediaPlayer.create(Splash.this, R.res.sound.intro); my folder tree ANDROID_01 assets bin gen libs res drawable layout menu sound intro.mp3 …

0
66

The End.