- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
i would like to read some data and display it in textbox. my example of data in my txt file are: "moviename1", "movieshowtime1" "moviename2", "movieshowtime2" when i display it in text box, it shows exactly like above. i want it to display without the quotes. how i can achive tat? … |
|
need help, this is my code! [CODE]import javax.swing.JOptionPane; public class Lab2_1 { public static void main(String[] args) { int value1=0 ,value2=0 ,operator=0; String temp4="1"; while(temp4 != "0" ){ String temp1 = JOptionPane.showInputDialog(null,"Please enter first value."); value1=Integer.parseInt(temp1); String temp2 = JOptionPane.showInputDialog(null,"Please enter operator.(+,-,*,/)"); String temp3 = JOptionPane.showInputDialog(null,"Please enter second value."); value2=Integer.parseInt(temp3); … |
|
i m trying to write a gui java program. i have a main screen, i declared my object in the main screen class. in the main screen, i will call 2 jpanel. from different class how can i make the 2 jpanel use the same object i declared on my … |
|
issit possible to let java obtain the path that store the specific .java file? |
|
i have 2 applets each in separate files. lets say i wan to click a button in applet1, and it will show applet2, hide applet1 and vice versa. how can i achieve tat? [CODE]/** * @(#)ATM.java * * * @author * @version 1.00 2010/3/1 */ import java.awt.*; import java.awt.event.*; import … |
|
this is my code, can anyone find out why do i get error? i don get error if i change my array column to lower than row. [CODE]import javax.swing.JOptionPane; public class Chern_sales{ public static void main(String[] args){ double[][] sales = new double[6][7]; double[] total = new double[6]; double[] totalPerDay = … |
|
[CODE]import javax.swing.JOptionPane; public class test{ public static void main(String args[]){ String numT = JOptionPane.showInputDialog(null,"Please enter a value."); double num1 = Double.parseDouble(numT); System.out.println("Fahrenheite = "+num1+"\nCelcius = "+convertFtoC( num1 )); } public static double convertFtoC ( double num1 ){ return ((5/9)*(num1-32)); } }[/CODE] why the value return is zero? hrm... can anyone … |
|
i would like to insert my data from txt file to array. but each line of my txt file contains more than one data. eg : "Data1","Data2","Data3","Data4" how do i sepreate each data to array[0][0],array[0][1],array[0][2] and array[0][3]?? i only know how to use getline function to take a whole line … |
|
can someone help check my code? i m trying to create multi dimension array with classes. it will not compile and i do not get the error message. thanks alot. [CODE=cplusplus]#include <iostream> using namespace std; const int MAX = 5, MAX2 = 3; class notebook { int num; public : … |
|
i am trying to mod my input but i got an error : invalid operands of types 'double' and 'int' to binary 'operator%' i would also like to noe top/60 how do i not show the remainder. i am using dev c++ this is my code : [CODE]int main() { … |
|
i want to input 2 data into an array, then compare it. however, do user input the data will be minutes and seconds example : 5 minutes 30.4 seconds and 6 minutes 40.5 seconds cin >> minutes, second can i compare these two data without adding the minutes and seconds … |
|
i m starting to learn c++. i m trying to do a console app. this is my code but i encountered a problem with it after i key in num1 and num2 the total will be display for about a few mili seconds and the console terminate itself. if i … |
|
i want this result : [CODE]* * * * * * * * * * * * * * *[/CODE] but i get this result with this code : [CODE]* * * * * * * * * * * * * * *[/CODE] [CODE]Private Sub Command1_Click() a = 5 … |
|
how do i let the timer to appear warning msg every hour? the maximum interval i can set in vb is 60 seconds. |
|
this is my code [CODE]Private Sub Command1_Click() Dim maximum, minimum, highest, lowest As Integer Dim num(1 To 5), i, j, z As Integer For i = 1 To 5 num(i) = InputBox("number") Next i highest = num(1) lowest = num(1) For z = 1 To 5 If num(z) > highest … |
|
how do i edit the existing data in a txt files? example of text file "string1","string2","int3" string3 is an integer, i wan to edit it everytime i click a command button numppl is selected by user i wan the new int3 to be old int3 + numppl can sum1 help … |