Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
73% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
~10K People Reached
Favorite Forums
Favorite Tags
Member Avatar for chern4ever

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? …

Member Avatar for Jx_Man
0
3K
Member Avatar for chern4ever

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); …

Member Avatar for javaAddict
0
107
Member Avatar for chern4ever

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 …

Member Avatar for chern4ever
0
157
Member Avatar for chern4ever

issit possible to let java obtain the path that store the specific .java file?

Member Avatar for chern4ever
0
71
Member Avatar for chern4ever

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 …

Member Avatar for jamesonh20
0
117
Member Avatar for chern4ever

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 = …

Member Avatar for masijade
1
100
Member Avatar for chern4ever

[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 …

Member Avatar for fardoonmuhafiz
0
175
Member Avatar for chern4ever

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 …

Member Avatar for VernonDozier
0
229
Member Avatar for chern4ever

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 : …

Member Avatar for chern4ever
0
113
Member Avatar for chern4ever

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() { …

Member Avatar for chern4ever
0
323
Member Avatar for chern4ever

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 …

Member Avatar for ArkM
0
76
Member Avatar for chern4ever

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 …

Member Avatar for Nick Evan
0
90
Member Avatar for chern4ever

i want this result : [CODE]* * * * * * * * * * * * * * *[/CODE] but i get this result with this code : [CODE]* * * * * * * * * * * * * * *[/CODE] [CODE]Private Sub Command1_Click() a = 5 …

Member Avatar for mmkhetan
0
74
Member Avatar for chern4ever

how do i let the timer to appear warning msg every hour? the maximum interval i can set in vb is 60 seconds.

Member Avatar for QVeen72
0
55
Member Avatar for chern4ever

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 …

Member Avatar for chern4ever
0
5K
Member Avatar for chern4ever

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 …

0
53