Click here to Skip to main content
15,892,298 members
Home / Discussions / Java
   

Java

 
GeneralRe: API Function Pin
rahmat_201-Mar-12 20:54
rahmat_201-Mar-12 20:54 
GeneralRe: API Function Pin
Richard MacCutchan1-Mar-12 23:16
mveRichard MacCutchan1-Mar-12 23:16 
GeneralRe: API Function Pin
jschell2-Mar-12 7:46
jschell2-Mar-12 7:46 
AnswerRe: API Function Pin
Richard MacCutchan29-Feb-12 3:02
mveRichard MacCutchan29-Feb-12 3:02 
AnswerRe: API Function Pin
gebri1-Mar-12 20:44
gebri1-Mar-12 20:44 
QuestionScanner isn't scanning Strings Correctly. Pin
johtnkucz27-Feb-12 7:06
johtnkucz27-Feb-12 7:06 
AnswerRe: Scanner isn't scanning Strings Correctly. PinPopular
Richard MacCutchan27-Feb-12 7:59
mveRichard MacCutchan27-Feb-12 7:59 
AnswerRe: Scanner isn't scanning Strings Correctly. Pin
johtnkucz28-Feb-12 5:59
johtnkucz28-Feb-12 5:59 
OMG I realized this is the exact same problem I had before when posting on my first post. I need to use a String.equals() comparison for strings in the if-conditional. I will try that. (thanks...to my recollection of solving that problem the first time! lol xD).

Marvelous. got it. Sweet. solved. nice code symmetry (start code and end fixed code, too)!
Java
import java.util.Scanner;

public class ScannerTester{
public static void main (String args[]){



Scanner aScanner_input = new Scanner(System.in);
String aScanner;
aScanner= aScanner_input.next();
if (aScanner.equals("s")){
System.out.println("aScanner is s!");
}
if (aScanner.equals("Y")){
System.out.println("aScanner is Y!");
}

}
}

//*/

GeneralRe: Scanner isn't scanning Strings Correctly. Pin
sandbad.ae905-Mar-12 18:45
sandbad.ae905-Mar-12 18:45 
QuestionAsk about resistor color code? Pin
Brillian Kharisma27-Feb-12 0:23
Brillian Kharisma27-Feb-12 0:23 
AnswerRe: Ask about resistor color code? Pin
TorstenH.27-Feb-12 0:50
TorstenH.27-Feb-12 0:50 
AnswerRe: Ask about resistor color code? Pin
Nagy Vilmos27-Feb-12 1:04
professionalNagy Vilmos27-Feb-12 1:04 
GeneralRe: Ask about resistor color code? Pin
CDP180228-Feb-12 4:11
CDP180228-Feb-12 4:11 
GeneralRe: Ask about resistor color code? Pin
Nagy Vilmos28-Feb-12 4:22
professionalNagy Vilmos28-Feb-12 4:22 
AnswerRe: Ask about resistor color code? Pin
Brillian Kharisma27-Feb-12 2:53
Brillian Kharisma27-Feb-12 2:53 
GeneralRe: Ask about resistor color code? Pin
Richard MacCutchan27-Feb-12 3:07
mveRichard MacCutchan27-Feb-12 3:07 
GeneralRe: Ask about resistor color code? Pin
TorstenH.27-Feb-12 6:12
TorstenH.27-Feb-12 6:12 
Questionjava code to convert files into file names in a text pad Pin
nivasnatarajan26-Feb-12 17:27
nivasnatarajan26-Feb-12 17:27 
AnswerRe: java code to convert files into file names in a text pad Pin
TorstenH.26-Feb-12 21:07
TorstenH.26-Feb-12 21:07 
AnswerRe: java code to convert files into file names in a text pad Pin
jschell27-Feb-12 8:27
jschell27-Feb-12 8:27 
Questionhow to call c code from java on linux? Pin
mr.thangtq26-Feb-12 16:51
mr.thangtq26-Feb-12 16:51 
AnswerRe: how to call c code from java on linux? Pin
TorstenH.26-Feb-12 21:04
TorstenH.26-Feb-12 21:04 
AnswerRe: how to call c code from java on linux? Pin
jschell27-Feb-12 8:30
jschell27-Feb-12 8:30 
QuestionArrayList_problem. Pin
B.Bryce26-Feb-12 9:33
B.Bryce26-Feb-12 9:33 
AnswerRe: ArrayList_problem. Pin
TorstenH.26-Feb-12 20:56
TorstenH.26-Feb-12 20:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.