0
   

How to compile with -Xlint in JCreator?

 
 
Reply Thu 12 Apr, 2012 12:11 pm
Note: C:\MyDocuments2\opiskelu\ok12\o2\o2h5\T3… uses unchecked or unsafe operations.
I get following error when compiling with JCreator - program( Java):
Note: Recompile with -Xlint:unchecked for details.
1 error

Process completed.

How to compile with -Xlint in JCreator? I don't find any option where one can compile with -Xlint. Maybe I have something wrong with code.
Here is the code.

import java.util.*;
/**
* Ohjelma toteuttaa mm. min-metodin
*/
public abstract class T3 implements Comparable{

public static Object min( Comparable[] a) {
Comparable min = a[0];
for( int i=0; i<a.length; i++) {
if( min.compareTo(a) == -1) {
min = a;
}
}
return min;
}

public static void main(String[] args) {
String[] taulu1 ={ "a", "d", "c", "b", "e", "f", "g", "h", "j", "i"};
for( int i=0; i<taulu1.length; i++) {
System.out.print(taulu1+" ");
}
System.out.println();
System.out.println("min = "+(String)min(taulu1));

int[] taulu2 = {12,2,3,3,4,6,1,2,7,12};
for( int j=0; j<taulu2.length; j++) {
System.out.print(taulu2[j]+" ");
}
System.out.println();
System.out.println("min = "+(int)min(taulu2));
}
}
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 2,440 • Replies: 0
No top replies

 
 

Related Topics

Clone of Micosoft Office - Question by Advocate
Do You Turn Off Your Computer at Night? - Discussion by Phoenix32890
The "Death" of the Computer Mouse - Discussion by Phoenix32890
Windows 10... - Discussion by Region Philbis
Surface Pro 3: What do you think? - Question by neologist
Windows 8 tips thread - Discussion by Wilso
GOOGLE CHROME - Question by Setanta
.Net and Firefox... - Discussion by gungasnake
Hacking a computer and remote access - Discussion by trying2learn
 
  1. Forums
  2. » How to compile with -Xlint in JCreator?
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.05 seconds on 04/23/2024 at 02:35:13