Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~2K People Reached
Favorite Forums
Favorite Tags
java x 25
Member Avatar for shubhang

I am a beginner at Java. I have been given an assignment to make a simple address book(without applets) using Java. It should have the following functions:- 1) search-by name,city. 2)add-name,telephone number,city,address. 3)modify. 4)delete. I am still working on the program.But the problem comes when the screen(black one) becomes too …

Member Avatar for blackeyedanel
0
224
Member Avatar for shubhang

Hi! I wanted to know in simple language what is an API (application program interface). I have made an address book program so can I call it an API. Help will be highly appreciated.

Member Avatar for verruckt24
0
143
Member Avatar for shubhang

Please help me with a simple watch program. In the program,I have to display on the same line. i have written the following code which is not working. pls look into it [code] class watch { private int h,m,s,a=0,b=0; public void calc() { for(;a==b;s++) { if(s%60==1) { m++; } if(m%60==1) …

Member Avatar for Antenka
0
222
Member Avatar for shubhang

Hi, I am making a java program to make a countdown timer. User enters time,then when time is up a message is printed. How do I print the time on the same line? Please tell me how to go about it. Thanks.

Member Avatar for stultuske
0
254
Member Avatar for shubhang

Hi, I am new at java. I have made the search class of an address book program with the functions of add, modify and delete. Please have a look into the code. Please also explain the function of [code] e.printstacktrace();[/code] [code] import java.io.*; import java.util.*; class search { private String …

Member Avatar for Antenka
0
162
Member Avatar for shubhang

I have made this delete class of my address book program. It gives an error when I use the renameTo() function. Please look into my program. [code] import java.io.*; import java.util.*; class del { private String stru,strf; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); public void calc()throws IOException { System.out.println("enter record to be …

Member Avatar for bondo
0
166
Member Avatar for shubhang

I am new at java. I am making an address book program. Below is a code of the Search class. Could anyone please look into it? The program is giving a problem while runtime. [code] import java.io.*; import java.util.*; class search { private String str,sval; private String arr[]=new String[8]; char …

Member Avatar for shubhang
0
126
Member Avatar for l_03

hello guyz,, i am really confused,,,we are about to make a program in java,,,we are making an ATM,,,however i am confused because i only have a transaction in ATm once and i dont remember much because it was 3 years ago... before i start,,i want to ask... what is in …

Member Avatar for stultuske
0
135
Member Avatar for shubhang

How to make streams to read and write files (in binary) . I have found a few Streams but do not know which one to use. they are as follows:- [code] PrintStream p=new PrintStream(new FileOutputStream("myfile.text")); DataInputStream in=new DataInputStream(new FileInputStream("myfile.txt")); BufferedReader br=new BufferedReader(new FileReader("myfile.text")); Printwriter pw=new PrintWriter(new FileWriter("myfile.text")); [/code] Please tell …

Member Avatar for peter_budo
0
114
Member Avatar for shubhang

I am in 10th grade and I am learning java. Could you please tell the difference between the Stream tokenizer and String tokenizer. I found it in my notes and could not understand its concept (as it was given in a very complicated manner). Please explain in simple language. Any …

Member Avatar for Ezzaral
0
83
Member Avatar for shubhang
Member Avatar for stultuske
0
65
Member Avatar for shubhang

I observed that many programmers do not create separate functions. They write the whole program in the main function. Doesn't this reduce its modularity? eg:[code] class abc { public static void main(String args[]) { int a=10; System.out.println(++a); } }[/code] it could also be written as:- [code] class abc { private …

Member Avatar for shubhang
0
99