6 Topics

Member Avatar for
Member Avatar for Mar. Na.

Hi ,all.. How can i read more than one java file but ,without repeating the section of bufferedreader in every time i read file!!....so if i have 20 file ...this way is unpractical?? for example: this code: public class buffer{ public static void main(String[]args) throws IOException { String filname1= "C:/filename/filename1"; …

Member Avatar for Mar. Na.
0
266
Member Avatar for Mar. Na.

Hi all, In main program I read file using bufferedreader, and (try, catch), Now this section is repeated in my code , how can I call function to do that ? By passing filepath ..I try it but I don't get any line of file ... How can I get …

Member Avatar for JamesCherrill
0
377
Member Avatar for Mar. Na.

Hi all,, how can i ignore the comment statements that begin with "/* " and ends with " * / " for example: /* the class is*/ or /* problem is very difficult */ i want to remove these statement when i reading java file line by line package filename1; …

Member Avatar for Mar. Na.
0
1K
Member Avatar for OFCLMAINrogieacuna

Hello! Badly need help. I need to do a program that will produce odd & even numbers using loop structure Sample output: Enter a number: 5 This number is an odd number! Input 1 to run the program again Input 2 to stop Enter your Choice: 1 Enter a number: …

Member Avatar for Varunkrishna
0
347
Member Avatar for pmark019

This code is a java code. Can you please help me convert this to c#? private static URL URLObj; private static URLConnection connect; static String source = ""; public static void main(String[] args) { try { URLObj = new URL("http://students.usls.edu.ph"); connect = URLObj.openConnection(); connect.setDoOutput(true); } catch (MalformedURLException ex) { System.out.println("The …

Member Avatar for cale.macdonald
0
460
Member Avatar for sapure

public class BufferedReader { public static void main(String[] args) throws IOException { char c; BufferedReader sen = new BufferedReader (new InputStreamReader(System.in)); **// ERROR** System.out.println("Enter characters, 'q' to quit"); // read characters from the console while(c != 'q') { c = (char) sen.read(); **// ERROR** System.out.print(c); } } } I don't …

Member Avatar for NormR1
0
193

The End.