32,199 Topics
| |
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 | |
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 … | |
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 … | |
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 … | |
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.... | |
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 … | |
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; … | |
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 … | |
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 … | |
Boolean eminem = new Boolean("yes"); What does it mean & what does it create? Thanks. | |
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 … | |
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(){ … | |
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 … | |
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" … | |
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! … | |
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 … | |
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 | |
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 … | |
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? | |
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 … | |
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 | |
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 … | |
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++) … | |
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 … | |
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 … | |
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 … | |
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); … | |
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 … | |
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) * … | |
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 … |
The End.