No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
please guide me to connect java application with "open office" database
[code] import java.lang.*; import java.util.*; class Sub { public static void main(String[] args) { String a = "1"; String b = "2"; String c = "3"; String d = "4"; String e = "5"; String f = "6"; String g = "7"; Scanner sa1 = new Scanner(System.in); System.out.println("1) Encrypt"); System.out.println("2) …
[code] import java.util.*; public class Sorting { public static void main(String[] args){ Scanner sc = new Scanner(System.in); TreeSet<Integer> ts = new TreeSet<Integer>(); for(int i = 0;i<3;i++){ System.out.print("Enter num"+(i+1)+" : "); ts.add(sc.nextInt()); } System.out.println("Ascending : "+ts); System.out.println("Descending : "+ts.descendingSet()); } } [/code] Try the above code gud time: mahkris
I have made a slight change in file called "HelloClient.java" and i get the program run succesfully replace the above file with the following code: import java.rmi.Naming; public class HelloClient { public static void main (String[] argv) { try { HelloInterface hello =(HelloInterface) Naming.lookup ("Hello"); System.out.println (hello.add()); } catch (Exception …
The End.
mahkris