6 Topics
|
|
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"; … |
|
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 … |
|
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; … |
|
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: … |
|
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 … |
|
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 … |
The End.