32,199 Topics

Member Avatar for
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
297
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
298
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
994
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
Member Avatar for c.pentasuglia

I have a pretty good understanding of what JAX-RS or any web-service is, but i have to question why use it? I have learned to use J2EE implementing a web application (JSP, JavaScript, CSS) that uses Service Classes to interface with EJB's, which then those EJB's interface with an EIS …

0
101
Member Avatar for love.emeter

I've tried to change to yellow, then pause for 4 seconds before changing to green but it doesn't work. public TrafficLight() { // Construct the circles red = new Circle(); yellow = new Circle(); green = new Circle(); // Set their color and make them visible red.changeColor("red"); red.makeVisible(); red.moveHorizontal(200); red.moveVertical(200); …

Member Avatar for love.emeter
0
291
Member Avatar for taylor.mitchell.353

My Text file is below. The bounds should be 0-2 for letter A or D then 2-15 for StateName(these are new states being added to a stack) and 15-25 for what should be the capital, but not all of them have capitals and for those I am getting an out …

Member Avatar for JamesCherrill
0
156
Member Avatar for Bradoz

Assume that the variables a, b, c and d are signed integers held in registers $s0 to $s3 respectively and put the result of the expression into register $t0. Also assume that the result of the multiplication will fit in 32 bits. (a + 2) * (b + c) * …

0
124
Member Avatar for sephzy

Hey there, Just hit a road block in my assignment. I won't concern you too much with the assignment itself but it's basically a number input operated menu with option's like "Display employee details" & "Input pay details." I'm up to a part where I need to get the section …

Member Avatar for JamesCherrill
0
326

The End.