標題:
printf() 函式 (二)
[打印本頁]
作者:
may
時間:
2023-3-6 17:41
標題:
printf() 函式 (二)
printf()函式輸出練習:
%d 整數
%s 字串
%S 轉換為大寫字母的字串
public class Ch65
{
public static void main(String[] args)
{
String str1="dog", str2="cat";
int a=3, b=5;
System.out.printf("There are %d %ss and %d %Ss.",a,str1,b,str2);
}
}
複製代碼
作者:
鍾易澄
時間:
2023-3-11 11:42
public class Dfgh
{
public static void main(String[] args)
{
String str1="dog", str2="cat";
int a=3, b=5;
System.out.printf("There are %d %ss and %d %Ss.",a,str1,b,str2);
}
}
複製代碼
作者:
許馹東
時間:
2023-3-11 11:42
public class B
{
public static void main(String[] args)
{
String str1="dog", str2="cat";
int a=3, b=5;
System.out.printf("There are %d %ss and %d %Ss.",a,str1,b,str2);
}
}
複製代碼
作者:
許宸瑀
時間:
2023-3-11 11:43
public class Ch01
{
public static void main(String[] args)
{
String str1="dog", str2="cat";
int a=3, b=5;
System.out.printf("There are %d %ss and %d %Ss.",a,str1,b,str2);
}
}
複製代碼
作者:
田家齊
時間:
2023-3-11 11:44
public class Ch01
{
public static void main(String[] args)
{
String str1="dog", str2="cat";
int a=3, b=5;
System.out.printf("There are %d %ss and %d %Ss.",a,str1,b,str2);
}
}
複製代碼
作者:
柳侑辰
時間:
2023-3-11 11:44
public class Ch02
{
public static void main(String[] args)
{
String str1="dog", str2="cat";
int a=3, b=5;
System.out.printf("There are %d %ss and %d %Ss.",a,str1,b,str2);
}
}
複製代碼
作者:
高鋐鈞
時間:
2023-3-11 11:45
public class Ch01
{
public static void main(String[] args)
{
String str1="dog", str2="cat";
int a=3, b=5;
System.out.printf("There are %d %ss and %d %Ss.",a,str1,b,str2);
}
}
複製代碼
作者:
曾善勤
時間:
2023-3-11 11:45
public class Ch01
{
public static void main(String[] args)
{
String str1="dog", str2="cat";
int a=3, b=5;
System.out.printf("There are %d %ss and %d %Ss.",a,str1,b,str2);
}
}
複製代碼
作者:
孫子傑
時間:
2023-3-11 12:08
public class SDAWD {
public static void main(String[] args) {
String s1="dog",s2="cat";
int a=3,b=5;
System.out.printf("There are %d %ss and %d %Ss",a,s1,b,s2);
}
}
複製代碼
作者:
高昀昊
時間:
2023-3-11 16:43
public class Ch04
{
public static void main(String[] args)
{
String str1="dog", str2="cat";
int a=3, b=5;
System.out.printf("There are %d %ss and %d %Ss.",a,str1,b,str2);
}
}
複製代碼
作者:
利勁鋼
時間:
2023-3-12 21:53
public class Ch65
{
public static void main(String[] args)
{
String str1="dog", str2="cat";
int a=3, b=5;
System.out.printf("There are %d %ss and %d %Ss.",a,str1,b,str2);
}
}
複製代碼
歡迎光臨 種子論壇 | 高雄市資訊培育協會學員討論區 (http://seed.istak.org.tw/)
Powered by Discuz! 7.2